mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Bump Huum to version 0.8.0 (#148763)
This commit is contained in:
parent
9068a09620
commit
d42d270fb2
@ -112,16 +112,8 @@ class HuumDevice(ClimateEntity):
|
|||||||
await self._turn_on(temperature)
|
await self._turn_on(temperature)
|
||||||
|
|
||||||
async def async_update(self) -> None:
|
async def async_update(self) -> None:
|
||||||
"""Get the latest status data.
|
"""Get the latest status data."""
|
||||||
|
self._status = await self._huum_handler.status()
|
||||||
We get the latest status first from the status endpoints of the sauna.
|
|
||||||
If that data does not include the temperature, that means that the sauna
|
|
||||||
is off, we then call the off command which will in turn return the temperature.
|
|
||||||
This is a workaround for getting the temperature as the Huum API does not
|
|
||||||
return the target temperature of a sauna that is off, even if it can have
|
|
||||||
a target temperature at that time.
|
|
||||||
"""
|
|
||||||
self._status = await self._huum_handler.status_from_status_or_stop()
|
|
||||||
if self._target_temperature is None or self.hvac_mode == HVACMode.HEAT:
|
if self._target_temperature is None or self.hvac_mode == HVACMode.HEAT:
|
||||||
self._target_temperature = self._status.target_temperature
|
self._target_temperature = self._status.target_temperature
|
||||||
|
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/huum",
|
"documentation": "https://www.home-assistant.io/integrations/huum",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"requirements": ["huum==0.7.12"]
|
"requirements": ["huum==0.8.0"]
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1186,7 +1186,7 @@ httplib2==0.20.4
|
|||||||
huawei-lte-api==1.11.0
|
huawei-lte-api==1.11.0
|
||||||
|
|
||||||
# homeassistant.components.huum
|
# homeassistant.components.huum
|
||||||
huum==0.7.12
|
huum==0.8.0
|
||||||
|
|
||||||
# homeassistant.components.hyperion
|
# homeassistant.components.hyperion
|
||||||
hyperion-py==0.7.6
|
hyperion-py==0.7.6
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1032,7 +1032,7 @@ httplib2==0.20.4
|
|||||||
huawei-lte-api==1.11.0
|
huawei-lte-api==1.11.0
|
||||||
|
|
||||||
# homeassistant.components.huum
|
# homeassistant.components.huum
|
||||||
huum==0.7.12
|
huum==0.8.0
|
||||||
|
|
||||||
# homeassistant.components.hyperion
|
# homeassistant.components.hyperion
|
||||||
hyperion-py==0.7.6
|
hyperion-py==0.7.6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user