Skip to content

Commit c8deffa

Browse files
committed
Detect appliance name-change
1 parent af7aa35 commit c8deffa

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
@@ -156,7 +156,10 @@ def _get_appliances(self) -> bool:
156156
continue
157157

158158
self._new_appliances.append(appl.entity_id)
159-
if appl.entity_id in self._existing_appliances:
159+
if (
160+
appl.entity_id in self._existing_appliances
161+
and self.gw_entities[appl.entity_id]["name"] == appl.name
162+
):
160163
continue
161164

162165
self._create_gw_entities(appl)

0 commit comments

Comments
 (0)