Skip to content

Commit

Permalink
Fix hive not updating when boosting (#122042)
Browse files Browse the repository at this point in the history
* fixes issue where hive does not update when boosting

* formats files
  • Loading branch information
HarryEMartland authored and frenck committed Jul 19, 2024
1 parent d9e44ba commit 002db3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions homeassistant/components/hive/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ async def async_update(self) -> None:
self.device = await self.hive.heating.getClimate(self.device)
self._attr_available = self.device["deviceData"].get("online")
if self._attr_available:
self._attr_hvac_mode = HIVE_TO_HASS_STATE[self.device["status"]["mode"]]
self._attr_hvac_action = HIVE_TO_HASS_HVAC_ACTION[
self._attr_hvac_mode = HIVE_TO_HASS_STATE.get(self.device["status"]["mode"])
self._attr_hvac_action = HIVE_TO_HASS_HVAC_ACTION.get(
self.device["status"]["action"]
]
)
self._attr_current_temperature = self.device["status"][
"current_temperature"
]
Expand All @@ -154,5 +154,6 @@ async def async_update(self) -> None:
self._attr_max_temp = self.device["max_temp"]
if self.device["status"]["boost"] == "ON":
self._attr_preset_mode = PRESET_BOOST
self._attr_hvac_mode = HVACMode.HEAT
else:
self._attr_preset_mode = PRESET_NONE

0 comments on commit 002db3c

Please sign in to comment.