Skip to content

Commit 4f88ff6

Browse files
committed
Don't set _anna_cooling_present when it's not an Anna
1 parent e89b103 commit 4f88ff6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugwise/smile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ def get_all_devices(self) -> None:
138138
search = self._domain_objects
139139
self._anna_cooling_present = adam_cooling_present = False
140140
if search.find(locator_1) is not None:
141-
self._anna_cooling_present = adam_cooling_present = True
141+
if self.smile_name == "Anna":
142+
self._anna_cooling_present = True
143+
else:
144+
adam_cooling_present = True
142145
# Alternative method for the Anna with Elga
143146
elif search.find(locator_2) is not None:
144147
self._anna_cooling_present = True

0 commit comments

Comments
 (0)