mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix missed cached_property for hvac_mode in climate (#106692)
This commit is contained in:
parent
8dfbe6849e
commit
456cb20fcd
@ -227,6 +227,7 @@ CACHED_PROPERTIES_WITH_ATTR_ = {
|
|||||||
"temperature_unit",
|
"temperature_unit",
|
||||||
"current_humidity",
|
"current_humidity",
|
||||||
"target_humidity",
|
"target_humidity",
|
||||||
|
"hvac_mode",
|
||||||
"hvac_modes",
|
"hvac_modes",
|
||||||
"hvac_action",
|
"hvac_action",
|
||||||
"current_temperature",
|
"current_temperature",
|
||||||
@ -414,7 +415,7 @@ class ClimateEntity(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
|
|||||||
"""Return the humidity we try to reach."""
|
"""Return the humidity we try to reach."""
|
||||||
return self._attr_target_humidity
|
return self._attr_target_humidity
|
||||||
|
|
||||||
@property
|
@cached_property
|
||||||
def hvac_mode(self) -> HVACMode | None:
|
def hvac_mode(self) -> HVACMode | None:
|
||||||
"""Return hvac operation ie. heat, cool mode."""
|
"""Return hvac operation ie. heat, cool mode."""
|
||||||
return self._attr_hvac_mode
|
return self._attr_hvac_mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user