Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
bouwew committed Dec 27, 2023
1 parent 80a3929 commit 957e11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugwise/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def _cleanup_data(self, data: DeviceData) -> None:
if "cooling_ena_switch" in data["switches"]:
data["switches"].pop("cooling_ena_switch") # pragma: no cover
self._count -= 1 # pragma: no cover
if (not self._elga and "cooling_enabled" in data) or (self._elga):
if "cooling_enabled" in data:
data.pop("cooling_enabled") # pragma: no cover
self._count -= 1 # pragma: no cover

Expand Down

0 comments on commit 957e11c

Please sign in to comment.