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?pull/14754/head^2
parent
1f73840aab
commit
80c77b8696
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue