Skip to content

Commit e6951c0

Browse files
committed
Change the THERMO_MATCHING constant
1 parent 3a7fa14 commit e6951c0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plugwise/helper.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,9 @@ def _get_appliances(self) -> bool:
176176

177177
removed = list(set(self._existing_appliances) - set(self._new_appliances))
178178
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-
return False
179+
for appliance in removed:
180+
self.gw_entities.pop(appliance)
181+
return False
185182

186183
# A smartmeter is not present as an appliance, add it specifically
187184
if not self._existing_appliances and (

0 commit comments

Comments
 (0)