mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix bug in ambiclimate (#54579)
* Fix ambiclimate Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net> * Fix ambiclimate Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
This commit is contained in:
parent
b71a0c5d4b
commit
821b93b0d0
@ -154,8 +154,6 @@ class AmbiclimateEntity(ClimateEntity):
|
|||||||
"name": self.name,
|
"name": self.name,
|
||||||
"manufacturer": "Ambiclimate",
|
"manufacturer": "Ambiclimate",
|
||||||
}
|
}
|
||||||
self._attr_min_temp = heater.get_min_temp()
|
|
||||||
self._attr_max_temp = heater.get_max_temp()
|
|
||||||
|
|
||||||
async def async_set_temperature(self, **kwargs: Any) -> None:
|
async def async_set_temperature(self, **kwargs: Any) -> None:
|
||||||
"""Set new target temperature."""
|
"""Set new target temperature."""
|
||||||
@ -184,6 +182,8 @@ class AmbiclimateEntity(ClimateEntity):
|
|||||||
await self._store.async_save(token_info)
|
await self._store.async_save(token_info)
|
||||||
|
|
||||||
data = await self._heater.update_device()
|
data = await self._heater.update_device()
|
||||||
|
self._attr_min_temp = self._heater.get_min_temp()
|
||||||
|
self._attr_max_temp = self._heater.get_max_temp()
|
||||||
self._attr_target_temperature = data.get("target_temperature")
|
self._attr_target_temperature = data.get("target_temperature")
|
||||||
self._attr_current_temperature = data.get("temperature")
|
self._attr_current_temperature = data.get("temperature")
|
||||||
self._attr_current_humidity = data.get("humidity")
|
self._attr_current_humidity = data.get("humidity")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user