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 19d5e87 commit e732429Copy full SHA for e732429
custom_components/plugwise/climate.py
@@ -2,7 +2,7 @@
2
3
from __future__ import annotations
4
5
-from typing import Any
+from typing import Any, cast
6
7
from homeassistant.components.climate import (
8
ATTR_HVAC_MODE,
@@ -238,7 +238,7 @@ def hvac_action(self) -> HVACAction: # pw-beta add to Core
238
239
# Adam provides the hvac_action for each thermostat
240
if (control_state := self.device.get(CONTROL_STATE)) in (HVACAction.COOLING, HVACAction.HEATING, HVACAction.PREHEATING):
241
- return control_state
+ return cast(HVACAction, control_state)
242
if control_state == HVACMode.OFF:
243
return HVACAction.IDLE
244
0 commit comments