Skip to content

Commit e50e85b

Browse files
committed
Optimize
1 parent dfd98ef commit e50e85b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugwise/helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,9 @@ def _get_appliances(self) -> bool:
150150
if not (appl := self._appliance_info_finder(appl, appliance)):
151151
continue
152152

153+
self._new_appliances.append(appl.entity_id)
153154
if appl.entity_id in self._existing_appliances:
154-
self._new_appliances.append((appl.entity_id))
155155
continue
156-
else: # add nnew appliance
157-
self._new_appliances.append(appl.entity_id)
158156

159157
self._create_gw_entities(appl)
160158

0 commit comments

Comments
 (0)