From be56851feb29c33a1ec7fd12e867a4d0cdfa9d65 Mon Sep 17 00:00:00 2001 From: William Sutton Date: Thu, 18 Jul 2019 15:36:17 -0400 Subject: [PATCH] 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 --- homeassistant/components/radiotherm/climate.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/radiotherm/climate.py b/homeassistant/components/radiotherm/climate.py index e1feb6f4024..b926e0447c0 100644 --- a/homeassistant/components/radiotherm/climate.py +++ b/homeassistant/components/radiotherm/climate.py @@ -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