Skip to content

Commit

Permalink
Pop thermostat_supports_cooling when no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bouwew committed Dec 27, 2023
1 parent 957e11c commit fa5f93c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugwise/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,10 @@ def _cleanup_data(self, data: DeviceData) -> None:
data.pop("cooling_enabled") # pragma: no cover
self._count -= 1 # pragma: no cover

if "thermostat_supports_cooling" in data:
data.pop("thermostat_supports_cooling", None)
self._count -= 1

def _process_c_heating_state(self, data: DeviceData) -> None:
"""Helper-function for _get_measurement_data().
Expand Down

0 comments on commit fa5f93c

Please sign in to comment.