1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2024-10-05 18:40:49 +01:00

Add auto eco mode to set of eco modes

This commit is contained in:
Jacob McSwain 2019-10-22 13:32:52 -05:00
parent f1abecefce
commit c4f702b859
No known key found for this signature in database
GPG Key ID: 59957AD09B94EDF5

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