Skip to content

Commit 6d069f1

Browse files
committed
Detect appliance name-change
1 parent 7c4bb99 commit 6d069f1

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
@@ -169,7 +169,10 @@ def _get_appliances(self) -> bool:
169169
continue
170170

171171
self._new_appliances.append(appl.entity_id)
172-
if appl.entity_id in self._existing_appliances:
172+
if (
173+
appl.entity_id in self._existing_appliances
174+
and self.gw_entities[appl.entity_id]["name"] == appl.name
175+
):
173176
continue
174177

175178
self._create_gw_entities(appl)

0 commit comments

Comments
 (0)