From 4b3cdb9f4e191e4892a613048db48a0c05369e7b Mon Sep 17 00:00:00 2001 From: Ted Drain Date: Mon, 21 Jan 2019 12:05:42 -0800 Subject: [PATCH] Add radiotherm is_on method to return on/off (#20283) * Added state method to return current operating state to fix #18244 for radiotherm component. * Changed to set the is_on property when actively heating or cooling. --- homeassistant/components/climate/radiotherm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/climate/radiotherm.py b/homeassistant/components/climate/radiotherm.py index f0423d32c96..a72bf711242 100644 --- a/homeassistant/components/climate/radiotherm.py +++ b/homeassistant/components/climate/radiotherm.py @@ -219,6 +219,11 @@ class RadioThermostat(ClimateDevice): """Return true if away mode is on.""" return self._away + @property + def is_on(self): + """Return true if on.""" + return self._tstate != STATE_IDLE + def update(self): """Update and validate the data from the thermostat.""" # Radio thermostats are very slow, and sometimes don't respond