mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 08:35:15 +02:00
committed by
GitHub
parent
2a5ca1c873
commit
2d8bc754c8
@@ -142,6 +142,11 @@ class Thermostat(ClimateDevice):
|
|||||||
else:
|
else:
|
||||||
return STATE_OFF
|
return STATE_OFF
|
||||||
|
|
||||||
|
@property
|
||||||
|
def current_operation(self):
|
||||||
|
"""Return current operation."""
|
||||||
|
return self.operation_mode
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def operation_mode(self):
|
def operation_mode(self):
|
||||||
"""Return current operation ie. heat, cool, idle."""
|
"""Return current operation ie. heat, cool, idle."""
|
||||||
@@ -162,11 +167,6 @@ class Thermostat(ClimateDevice):
|
|||||||
"""Return current mode ie. home, away, sleep."""
|
"""Return current mode ie. home, away, sleep."""
|
||||||
return self.thermostat['program']['currentClimateRef']
|
return self.thermostat['program']['currentClimateRef']
|
||||||
|
|
||||||
@property
|
|
||||||
def current_operation(self):
|
|
||||||
"""Return current hvac mode ie. auto, auxHeatOnly, cool, heat, off."""
|
|
||||||
return self.thermostat['settings']['hvacMode']
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fan_min_on_time(self):
|
def fan_min_on_time(self):
|
||||||
"""Return current fan minimum on time."""
|
"""Return current fan minimum on time."""
|
||||||
@@ -180,7 +180,7 @@ class Thermostat(ClimateDevice):
|
|||||||
"humidity": self.current_humidity,
|
"humidity": self.current_humidity,
|
||||||
"fan": self.fan,
|
"fan": self.fan,
|
||||||
"mode": self.mode,
|
"mode": self.mode,
|
||||||
"operation_mode": self.current_operation,
|
"hvac_mode": self.thermostat['settings']['hvacMode'],
|
||||||
"fan_min_on_time": self.fan_min_on_time
|
"fan_min_on_time": self.fan_min_on_time
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user