forked from home-assistant/core
Implementing set_hvac_mode for Nest (#2621)
This commit is contained in:
committed by
Paulus Schoutsen
parent
8ee4503d7c
commit
14707630ae
@@ -141,6 +141,10 @@ class NestThermostat(ThermostatDevice):
|
|||||||
temperature = (self.target_temperature_low, temperature)
|
temperature = (self.target_temperature_low, temperature)
|
||||||
self.device.target = 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):
|
def turn_away_mode_on(self):
|
||||||
"""Turn away on."""
|
"""Turn away on."""
|
||||||
self.structure.away = True
|
self.structure.away = True
|
||||||
|
Reference in New Issue
Block a user