Implementing set_hvac_mode for Nest ()

pull/2582/merge
vladonemo 2016-07-25 17:29:40 +02:00 committed by Paulus Schoutsen
parent 8ee4503d7c
commit 14707630ae
1 changed files with 4 additions and 0 deletions
homeassistant/components/thermostat

View File

@ -141,6 +141,10 @@ class NestThermostat(ThermostatDevice):
temperature = (self.target_temperature_low, temperature)
self.device.target = temperature
def set_hvac_mode(self, hvac_mode):
"""Set hvac mode."""
self.device.mode = hvac_mode
def turn_away_mode_on(self):
"""Turn away on."""
self.structure.away = True