Fix ecobee preset and add climate mode back (#25970)

* Fix ecobee preset and add climate mode back

* Fix test
This commit is contained in:
Paulus Schoutsen authored and Daniel Høyer Iversen committed 2019-08-16 10:29:25 +03:00
1 parent 90d493a51a
commit 23f26712f0
2 files changed
+17 -1

No files matched your search

+4 -1
View File
@@ -304,7 +304,7 @@ class Thermostat(ClimateDevice):
self.vacation = event["name"]
return PRESET_VACATION
return None
return self._preset_modes[self.thermostat["program"]["currentClimateRef"]]
@property
def hvac_mode(self):
@@ -357,6 +357,9 @@ class Thermostat(ClimateDevice):
status = self.thermostat["equipmentStatus"]
return {
"fan": self.fan,
"climate_mode": self._preset_modes[
self.thermostat["program"]["currentClimateRef"]
],
"equipment_running": status,
"fan_min_on_time": self.thermostat["settings"]["fanMinOnTime"],
}