From f3ecec9c44ccd537664e41b56d0938136dcb537e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 29 Dec 2023 14:12:19 -1000 Subject: [PATCH] Fix missed cached_property for hvac_mode in climate (#106692) --- homeassistant/components/climate/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/climate/__init__.py b/homeassistant/components/climate/__init__.py index 19e26265f70fed..78cb92944cbf86 100644 --- a/homeassistant/components/climate/__init__.py +++ b/homeassistant/components/climate/__init__.py @@ -227,6 +227,7 @@ class ClimateEntityDescription(EntityDescription, frozen_or_thawed=True): "temperature_unit", "current_humidity", "target_humidity", + "hvac_mode", "hvac_modes", "hvac_action", "current_temperature", @@ -414,7 +415,7 @@ def target_humidity(self) -> int | None: """Return the humidity we try to reach.""" return self._attr_target_humidity - @property + @cached_property def hvac_mode(self) -> HVACMode | None: """Return hvac operation ie. heat, cool mode.""" return self._attr_hvac_mode