Implementing set_hvac_mode for Nest (#2621)
parent
8ee4503d7c
commit
14707630ae
homeassistant/components/thermostat
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue