From c4f702b8594591bb3b9e0b787e5e97a10bf32deb Mon Sep 17 00:00:00 2001 From: Jacob McSwain Date: Tue, 22 Oct 2019 13:32:52 -0500 Subject: [PATCH] Add auto eco mode to set of eco modes --- custom_components/badnest/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/badnest/api.py b/custom_components/badnest/api.py index 6e3c38c..c2dcba6 100644 --- a/custom_components/badnest/api.py +++ b/custom_components/badnest/api.py @@ -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