We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a224806 commit 6a4d25aCopy full SHA for 6a4d25a
1 file changed
plugwise/helper.py
@@ -178,16 +178,16 @@ def _get_appliances(self) -> bool:
178
# Sort the gw_entities
179
self._reorder_devices()
180
181
- removed = list(set(self._existing_appliances) - set(self._new_appliances))
182
new = list(set(self._new_appliances) - set(self._existing_appliances))
+ removed = list(set(self._existing_appliances) - set(self._new_appliances))
183
if self._existing_appliances:
184
for appliance in removed:
185
self.gw_entities.pop(appliance)
186
187
self._existing_appliances = self._new_appliances
188
self._new_appliances = []
189
190
- if new:
+ if new or removed:
191
return True
192
193
return False
0 commit comments