mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Make Nest state reflect current operation not current operation mode
This commit is contained in:
@@ -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."""
|
||||||
|
Reference in New Issue
Block a user