Fix missed cached_property for hvac_mode in climate (#106692)

This commit is contained in:
J. Nick Koston 2023-12-29 14:12:19 -10:00 committed by Franck Nijhof
parent 8dfbe6849e
commit 456cb20fcd
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -227,6 +227,7 @@ CACHED_PROPERTIES_WITH_ATTR_ = {
"temperature_unit",
"current_humidity",
"target_humidity",
"hvac_mode",
"hvac_modes",
"hvac_action",
"current_temperature",
@ -414,7 +415,7 @@ class ClimateEntity(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
"""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