* fix ecobee mode

* Fixup
This commit is contained in:
John Arild Berentsen 2016-08-28 22:51:56 +02:00 committed by GitHub
parent 2a5ca1c873
commit 2d8bc754c8

View File

@ -142,6 +142,11 @@ class Thermostat(ClimateDevice):
else:
return STATE_OFF
@property
def current_operation(self):
"""Return current operation."""
return self.operation_mode
@property
def operation_mode(self):
"""Return current operation ie. heat, cool, idle."""
@ -162,11 +167,6 @@ class Thermostat(ClimateDevice):
"""Return current mode ie. home, away, sleep."""
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
def fan_min_on_time(self):
"""Return current fan minimum on time."""
@ -180,7 +180,7 @@ class Thermostat(ClimateDevice):
"humidity": self.current_humidity,
"fan": self.fan,
"mode": self.mode,
"operation_mode": self.current_operation,
"hvac_mode": self.thermostat['settings']['hvacMode'],
"fan_min_on_time": self.fan_min_on_time
}