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 fd94f75 commit a8826d4Copy full SHA for a8826d4
plugwise/helper.py
@@ -178,14 +178,18 @@ def _get_appliances(self) -> bool:
178
self._reorder_devices()
179
180
removed = list(set(self._existing_appliances) - set(self._new_appliances))
181
+ new = list(set(self._new_appliances) - set(self._existing_appliances))
182
if self._existing_appliances:
183
for appliance in removed:
184
self.gw_entities.pop(appliance)
- return False
185
186
self._existing_appliances = self._new_appliances
187
self._new_appliances = []
188
- return True
+
189
+ if new:
190
+ return True
191
192
+ return False
193
194
def _add_p1_smartmeter_info(self) -> None:
195
"""For P1 collect the smartmeter info from the Home/building location and add it as an entity.
0 commit comments