Fix HAVCAction typing in Overkiz (#94660)

This commit is contained in:
Franck Nijhof
2023-06-15 18:42:46 +02:00
committed by GitHub
parent 562f0d3c52
commit 7e5a9ea6c7

View File

@@ -73,7 +73,7 @@ class ValveHeatingTemperatureInterface(OverkizEntity, ClimateEntity):
)
@property
def hvac_action(self) -> str:
def hvac_action(self) -> HVACAction:
"""Return the current running hvac operation."""
return OVERKIZ_TO_HVAC_ACTION[
cast(str, self.executor.select_state(OverkizState.CORE_OPEN_CLOSED_VALVE))