Skip to content

Commit 726f25c

Browse files
committed
Guard for appliances with changed names
1 parent ce70539 commit 726f25c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugwise/helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ def _get_appliances(self) -> bool:
160160
self._new_appliances.append(appl.entity_id)
161161
if (
162162
appl.entity_id in self._existing_appliances
163-
and self.gw_entities[appl.entity_id]["name"] == appl.name
163+
and (
164+
appl.name in ("Gateway", "Central heating boiler")
165+
or self.gw_entities[appl.entity_id]["name"] == appl.name
166+
)
164167
):
165168
continue
166169

0 commit comments

Comments
 (0)