From b1abe6812b6e974e8c6aa16ea7fe7b38a4d0ffd4 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 15 Jun 2023 14:07:41 +0200 Subject: [PATCH] Fix HAVCMode typing in Honeywell Total Connect Comfort (#94636) --- homeassistant/components/evohome/climate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/evohome/climate.py b/homeassistant/components/evohome/climate.py index d4ee8f3d5df..3bee1d6062e 100644 --- a/homeassistant/components/evohome/climate.py +++ b/homeassistant/components/evohome/climate.py @@ -131,7 +131,7 @@ class EvoClimateEntity(EvoDevice, ClimateEntity): _attr_temperature_unit = UnitOfTemperature.CELSIUS @property - def hvac_modes(self) -> list[str]: + def hvac_modes(self) -> list[HVACMode]: """Return a list of available hvac operation modes.""" return list(HA_HVAC_TO_TCS) @@ -191,7 +191,7 @@ class EvoZone(EvoChild, EvoClimateEntity): ) @property - def hvac_mode(self) -> str: + def hvac_mode(self) -> HVACMode: """Return the current operating mode of a Zone.""" if self._evo_tcs.systemModeStatus["mode"] in (EVO_AWAY, EVO_HEATOFF): return HVACMode.AUTO @@ -356,7 +356,7 @@ class EvoController(EvoClimateEntity): ) @property - def hvac_mode(self) -> str: + def hvac_mode(self) -> HVACMode: """Return the current operating mode of a Controller.""" tcs_mode = self._evo_tcs.systemModeStatus["mode"] return HVACMode.OFF if tcs_mode == EVO_HEATOFF else HVACMode.HEAT