Skip to content

Commit 6980f34

Browse files
committed
Try 6
1 parent 05c7e82 commit 6980f34

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugwise/helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def _all_appliances(self) -> bool:
157157

158158
self._create_gw_entities(appl)
159159

160+
LOGGER.debug("HOI existing: %s", self._existing_appliances)
161+
LOGGER.debug("HOI new: %s", self._new_appliances)
160162
if self._existing_appliances == self._new_appliances:
161163
return False
162164

plugwise/smile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def get_all_gateway_entities(self) -> None:
110110
Collect and add switching- and/or pump-group entities.
111111
Finally, collect the data and states for each entity.
112112
"""
113-
if self._all_appliances():
113+
if not self._all_appliances():
114+
LOGGER.debug("HOI no new appliances found, skipping")
115+
else:
114116
if self._is_thermostat:
115117
self.therms_with_offset_func = (
116118
self._get_appliances_with_offset_functionality()

0 commit comments

Comments
 (0)