Add away mode to heat control
This commit is contained in:
parent
e6cd9a6dc7
commit
0180c056e1
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue