From 0180c056e1c7eb0b56bd54043b8c6accc216569f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 2 Oct 2015 08:57:38 -0700 Subject: [PATCH] Add away mode to heat control --- homeassistant/components/thermostat/heat_control.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/thermostat/heat_control.py b/homeassistant/components/thermostat/heat_control.py index f77d4285544..c1dab1173d7 100644 --- a/homeassistant/components/thermostat/heat_control.py +++ b/homeassistant/components/thermostat/heat_control.py @@ -190,6 +190,13 @@ class HeatControl(ThermostatDevice): if self._heater_manual_changed: self.set_temperature(None) + @property + def is_away_mode_on(self): + """ + Returns if away mode is on. + """ + return self._away + def turn_away_mode_on(self): """ Turns away mode on. """ self._away = True