File tree Expand file tree Collapse file tree 3 files changed +2048
-1654
lines changed
userdata/updated/adam_plus_anna_new Expand file tree Collapse file tree 3 files changed +2048
-1654
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments