From 80c77b86965107006237167a641661406919dd0a Mon Sep 17 00:00:00 2001 From: cpw Date: Fri, 7 Sep 2018 07:21:32 -0400 Subject: [PATCH] Update radiotherm (#15031) the two device_state_attributes don't return the current actual state (fan on/off, heat/cool), but rather the mode of the fan or thermostat (generally auto). As such this change makes the actual current state visible to the system, so you can do stuff when the fan turns on, for example. I suspect this is just a bug, but maybe it was intended NOT to be able to see the actual fan state? --- homeassistant/components/climate/radiotherm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/climate/radiotherm.py b/homeassistant/components/climate/radiotherm.py index 429b544aefc..14cd2a0f02e 100644 --- a/homeassistant/components/climate/radiotherm.py +++ b/homeassistant/components/climate/radiotherm.py @@ -174,8 +174,8 @@ class RadioThermostat(ClimateDevice): def device_state_attributes(self): """Return the device specific state attributes.""" return { - ATTR_FAN: self._fmode, - ATTR_MODE: self._tmode, + ATTR_FAN: self._fstate, + ATTR_MODE: self._tstate, } @property