Skip to content

Commit 000cb4a

Browse files
committed
Update updates/adam_plus_anna_new-xml
1 parent 009af87 commit 000cb4a

File tree

3 files changed

+2048
-1654
lines changed

3 files changed

+2048
-1654
lines changed

plugwise/helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +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 and not (
163-
set(self._new_appliances) <= set(self._existing_appliances)
164-
):
165-
LOGGER.debug("HOI unknown appliance(s) found.")
162+
is_subset = set(self._new_appliances) <= set(self._existing_appliances)
163+
LOGGER.debug("HOI is_subset: %s", is_subset)
164+
if self._existing_appliances and is_subset:
165+
LOGGER.debug("HOI no unknown appliance(s) found.")
166166
return False
167167

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

plugwise/smile.py

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

0 commit comments

Comments
 (0)