Skip to content

Commit

Permalink
Fix missed cached_property for hvac_mode in climate (home-assistant#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Dec 30, 2023
1 parent 8abfde2 commit f3ecec9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/climate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f3ecec9

Please sign in to comment.