Make Nest state reflect current operation not current operation mode
This commit is contained in:
parent
bf30674671
commit
573ba028d8
1 changed files with 9 additions and 0 deletions
|
@ -62,6 +62,15 @@ class NestThermostat(ClimateDevice):
|
||||||
"""Return the unit of measurement."""
|
"""Return the unit of measurement."""
|
||||||
return TEMP_CELSIUS
|
return TEMP_CELSIUS
|
||||||
|
|
||||||
|
@property
|
||||||
|
def state(self):
|
||||||
|
if self.device.hvac_ac_state:
|
||||||
|
return STATE_COOL
|
||||||
|
elif self.device.hvac_heater_state:
|
||||||
|
return STATE_HEAT
|
||||||
|
else:
|
||||||
|
return STATE_IDLE
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
"""Return the device specific state attributes."""
|
"""Return the device specific state attributes."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue