From 2d8bc754c81262463e41cf59f36d7ce102b88b06 Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Sun, 28 Aug 2016 22:51:56 +0200 Subject: [PATCH] Ecobee (#3025) * fix ecobee mode * Fixup --- homeassistant/components/climate/ecobee.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/climate/ecobee.py b/homeassistant/components/climate/ecobee.py index 76038085385..5c65a7d0b23 100644 --- a/homeassistant/components/climate/ecobee.py +++ b/homeassistant/components/climate/ecobee.py @@ -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 }