mirror of
https://github.com/home-assistant/core.git
synced 2025-06-06 06:07:07 +00:00
Add away mode to heat control
This commit is contained in:
parent
e6cd9a6dc7
commit
0180c056e1
@ -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…
x
Reference in New Issue
Block a user