mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Update CT80 Humidity call (#25258)
Last PR was from a few versions before, not sure how I had it working, but functioning properly now on .96
This commit is contained in:
parent
53954d6f8f
commit
be56851feb
@ -224,13 +224,12 @@ class RadioThermostat(ClimateDevice):
|
|||||||
|
|
||||||
if self._is_model_ct80:
|
if self._is_model_ct80:
|
||||||
try:
|
try:
|
||||||
humiditydata = self.device.tstat.humidity['raw']
|
humiditydata = self.device.humidity['raw']
|
||||||
except radiotherm.validate.RadiothermTstatError:
|
except radiotherm.validate.RadiothermTstatError:
|
||||||
_LOGGER.warning('%s (%s) was busy (invalid value returned)',
|
_LOGGER.warning('%s (%s) was busy (invalid value returned)',
|
||||||
self._name, self.device.host)
|
self._name, self.device.host)
|
||||||
return
|
return
|
||||||
current_humidity = humiditydata['humidity']
|
self._current_humidity = humiditydata
|
||||||
self._current_humidity = current_humidity
|
|
||||||
|
|
||||||
# Map thermostat values into various STATE_ flags.
|
# Map thermostat values into various STATE_ flags.
|
||||||
self._current_temperature = current_temp
|
self._current_temperature = current_temp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user