Implementing set_hvac_mode for Nest (#2621)
This commit is contained in:
1 parent
8ee4503d7c
commit
14707630ae
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user