mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix HAVCMode typing in Honeywell Total Connect Comfort (#94636)
This commit is contained in:
parent
e49f1b002f
commit
b1abe6812b
@ -131,7 +131,7 @@ class EvoClimateEntity(EvoDevice, ClimateEntity):
|
|||||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_modes(self) -> list[str]:
|
def hvac_modes(self) -> list[HVACMode]:
|
||||||
"""Return a list of available hvac operation modes."""
|
"""Return a list of available hvac operation modes."""
|
||||||
return list(HA_HVAC_TO_TCS)
|
return list(HA_HVAC_TO_TCS)
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ class EvoZone(EvoChild, EvoClimateEntity):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_mode(self) -> str:
|
def hvac_mode(self) -> HVACMode:
|
||||||
"""Return the current operating mode of a Zone."""
|
"""Return the current operating mode of a Zone."""
|
||||||
if self._evo_tcs.systemModeStatus["mode"] in (EVO_AWAY, EVO_HEATOFF):
|
if self._evo_tcs.systemModeStatus["mode"] in (EVO_AWAY, EVO_HEATOFF):
|
||||||
return HVACMode.AUTO
|
return HVACMode.AUTO
|
||||||
@ -356,7 +356,7 @@ class EvoController(EvoClimateEntity):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_mode(self) -> str:
|
def hvac_mode(self) -> HVACMode:
|
||||||
"""Return the current operating mode of a Controller."""
|
"""Return the current operating mode of a Controller."""
|
||||||
tcs_mode = self._evo_tcs.systemModeStatus["mode"]
|
tcs_mode = self._evo_tcs.systemModeStatus["mode"]
|
||||||
return HVACMode.OFF if tcs_mode == EVO_HEATOFF else HVACMode.HEAT
|
return HVACMode.OFF if tcs_mode == EVO_HEATOFF else HVACMode.HEAT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user