mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Implementing set_hvac_mode for Nest (#2621)
This commit is contained in:
parent
8ee4503d7c
commit
14707630ae
@ -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…
x
Reference in New Issue
Block a user