1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2025-09-04 13:31:54 +01:00

Merge pull request #19 from USA-RedDragon/auto-eco-mode

Add auto eco mode to set of eco modes
This commit is contained in:
Jacob McSwain
2019-10-22 13:34:25 -05:00
committed by GitHub

View File

@@ -166,7 +166,8 @@ class NestThermostatAPI(NestAPI):
self.has_fan = thermostat_data["has_fan"]
self.fan = thermostat_data["fan_timer_timeout"] > 0
self.current_humidity = thermostat_data["current_humidity"]
if thermostat_data["eco"]["mode"] == 'manual-eco':
if thermostat_data["eco"]["mode"] == 'manual-eco' or \
thermostat_data["eco"]["mode"] == 'auto-eco':
temp_mode = 'eco'
self.mode = temp_mode