Skip to content

Commit 0512af7

Browse files
committed
Save entity_id locally
1 parent 05fc576 commit 0512af7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ def _get_appliances(self) -> bool:
172172
# continue
173173

174174
# Collect appliance info, skip orphaned/removed devices
175+
entity_id = appl.entity_id
175176
if not (appl := self._appliance_info_finder(appl, appliance)):
176-
if appl.entity_id in self._new_appliances:
177+
if entity_id in self._new_appliances:
177178
self._new_appliances.pop()
178179
continue
179180

0 commit comments

Comments
 (0)