Skip to content

Commit 009af87

Browse files
committed
Try 7
1 parent 6980f34 commit 009af87

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugwise/helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ def _all_appliances(self) -> bool:
159159

160160
LOGGER.debug("HOI existing: %s", self._existing_appliances)
161161
LOGGER.debug("HOI new: %s", self._new_appliances)
162-
if self._existing_appliances == self._new_appliances:
162+
if self._existing_appliances and not (
163+
set(self._new_appliances) <= set(self._existing_appliances)
164+
):
165+
LOGGER.debug("HOI unknown appliance(s) found.")
163166
return False
164167

165168
# A smartmeter is not present as an appliance, add it specifically

plugwise/smile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
DOMAIN_OBJECTS,
1818
GATEWAY_REBOOT,
1919
LOCATIONS,
20+
LOGGER,
2021
MAX_SETPOINT,
2122
MIN_SETPOINT,
2223
NONE,

0 commit comments

Comments
 (0)