Skip to content

Commit 1c74c51

Browse files
committed
Try 2
1 parent 8e63576 commit 1c74c51

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

plugwise/helper.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,19 @@ def _get_appliances(self) -> bool:
157157

158158
extend_plug_device_class(appl, appliance)
159159

160-
if appl.entity_id not in self._existing_appliances:
161-
self._new_appliances.append(appl.entity_id)
162-
elif (
160+
self._new_appliances.append(appl.entity_id)
161+
if appl.entity_id in self._existing_appliances and (
163162
appl.pwclass in ("gateway", "heater_central")
164163
or self.gw_entities[appl.entity_id]["name"] == appl.name
165164
):
166165
continue
167166

167+
# if (
168+
# appl.pwclass in ("gateway", "heater_central") # Names are fixed in software
169+
# or self.gw_entities[appl.entity_id]["name"] == appl.name
170+
# ):
171+
# continue
172+
168173
# Collect appliance info, skip orphaned/removed devices
169174
if not (appl := self._appliance_info_finder(appl, appliance)):
170175
if appl.entity_id in self._new_appliances:

0 commit comments

Comments
 (0)