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
pull/25280/head
William Sutton 2019-07-18 15:36:17 -04:00 committed by Paulus Schoutsen
parent 2016cf872e
commit ec3cb11e2f
1 changed files with 2 additions and 3 deletions

View File

@ -224,13 +224,12 @@ class RadioThermostat(ClimateDevice):
if self._is_model_ct80:
try:
humiditydata = self.device.tstat.humidity['raw']
humiditydata = self.device.humidity['raw']
except radiotherm.validate.RadiothermTstatError:
_LOGGER.warning('%s (%s) was busy (invalid value returned)',
self._name, self.device.host)
return
current_humidity = humiditydata['humidity']
self._current_humidity = current_humidity
self._current_humidity = humiditydata
# Map thermostat values into various STATE_ flags.
self._current_temperature = current_temp