From e899cb3caa8cc5e46e86be2873da1a377d412d9a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 15 Jun 2023 14:08:38 +0200 Subject: [PATCH] Fix HAVCMode typing in Genius Hub (#94640) --- homeassistant/components/geniushub/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/geniushub/climate.py b/homeassistant/components/geniushub/climate.py index c2b32582cef..87c8b851ea9 100644 --- a/homeassistant/components/geniushub/climate.py +++ b/homeassistant/components/geniushub/climate.py @@ -66,12 +66,12 @@ class GeniusClimateZone(GeniusHeatingZone, ClimateEntity): return "mdi:radiator" @property - def hvac_mode(self) -> str: + def hvac_mode(self) -> HVACMode: """Return hvac operation ie. heat, cool mode.""" return GH_HVAC_TO_HA.get(self._zone.data["mode"], HVACMode.HEAT) @property - def hvac_modes(self) -> list[str]: + def hvac_modes(self) -> list[HVACMode]: """Return the list of available hvac operation modes.""" return list(HA_HVAC_TO_GH)