thermostat: move fan attribute up to thermostat
This commit is contained in:
parent
afa4fc4ef5
commit
a0ed469aa2
2 changed files with 18 additions and 1 deletions
|
@ -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. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue