Skip to content

Commit 67309e7

Browse files
committed
Correct logic
1 parent 4a7c611 commit 67309e7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugwise/helper.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,9 @@ def _get_appliances(self) -> bool:
166166
continue
167167

168168
# Collect appliance info, skip orphaned/removed devices
169-
if not (
170-
(appl := self._appliance_info_finder(appl, appliance))
171-
and appl.entity_id in self._new_appliances
172-
):
173-
self._new_appliances.pop()
169+
if not (appl := self._appliance_info_finder(appl, appliance)):
170+
if appl.entity_id in self._new_appliances:
171+
self._new_appliances.pop()
174172
continue
175173

176174
self._create_gw_entities(appl)

0 commit comments

Comments
 (0)