Skip to content

Commit 3f28436

Browse files
committed
Implement pop-suggestion
1 parent 995d577 commit 3f28436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def _scan_thermostats(self) -> None:
855855
removed = list(set(self._existing_zones) - set(self._new_zones))
856856
if self._existing_zones and removed:
857857
for location_id in removed:
858-
self._zones.pop(location_id)
858+
self._zones.pop(location_id, None)
859859

860860
self._existing_zones = self._new_zones
861861
self._new_zones = []

0 commit comments

Comments
 (0)