1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2024-10-05 18:31:13 +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
commit 6f097c58a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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