thermostat: move fan attribute up to thermostat

This commit is contained in:
Michael Auchter 2016-01-11 19:08:41 -06:00
parent afa4fc4ef5
commit a0ed469aa2
2 changed files with 18 additions and 1 deletions

View file

@ -66,7 +66,6 @@ class NestThermostat(ThermostatDevice):
return {
"humidity": self.device.humidity,
"target_humidity": self.device.target_humidity,
"fan": self.device.fan,
"mode": self.device.mode
}
@ -143,6 +142,11 @@ class NestThermostat(ThermostatDevice):
""" Turns away off. """
self.structure.away = False
@property
def is_fan_on(self):
""" Returns whether the fan is on """
return self.device.fan
@property
def min_temp(self):
""" Identifies min_temp in Nest API or defaults if not available. """