We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7fa14 commit e6951c0Copy full SHA for e6951c0
plugwise/helper.py
@@ -176,12 +176,9 @@ def _get_appliances(self) -> bool:
176
177
removed = list(set(self._existing_appliances) - set(self._new_appliances))
178
if self._existing_appliances:
179
- if not removed:
180
- return False
181
- else:
182
- for appliance in removed:
183
- self.gw_entities.pop(appliance)
184
+ for appliance in removed:
+ self.gw_entities.pop(appliance)
+ return False
185
186
# A smartmeter is not present as an appliance, add it specifically
187
if not self._existing_appliances and (
0 commit comments