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 ed4acdb commit 98910e1Copy full SHA for 98910e1
plugwise/helper.py
@@ -981,9 +981,11 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
981
if all(item in data for item in ("cooling_ena_switch", "cooling_enabled")):
982
data.pop("cooling_enabled")
983
984
- # Don't show cooling_state when no cooling present
985
- if not self._cooling_present and "cooling_state" in data:
986
- data.pop("cooling_state")
+ # Don't show cooling-related when no cooling present
+ if not self._cooling_present:
+ for item in ("cooling_state", "cooling_ena_switch", "cooling_enabled"):
987
+ if item in data:
988
+ data.pop(item)
989
990
return cast(DeviceData, data)
991
0 commit comments