Skip to content

Commit e732429

Browse files
committed
Fix typing error
1 parent 19d5e87 commit e732429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/plugwise/climate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Any
5+
from typing import Any, cast
66

77
from homeassistant.components.climate import (
88
ATTR_HVAC_MODE,
@@ -238,7 +238,7 @@ def hvac_action(self) -> HVACAction: # pw-beta add to Core
238238

239239
# Adam provides the hvac_action for each thermostat
240240
if (control_state := self.device.get(CONTROL_STATE)) in (HVACAction.COOLING, HVACAction.HEATING, HVACAction.PREHEATING):
241-
return control_state
241+
return cast(HVACAction, control_state)
242242
if control_state == HVACMode.OFF:
243243
return HVACAction.IDLE
244244

0 commit comments

Comments
 (0)