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

Merge pull request #21 from USA-RedDragon/eco-visual-bug

Fix eco going in and out on UI
This commit is contained in:
Jacob McSwain 2019-10-22 13:47:22 -05:00 committed by GitHub
commit 1228304609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,8 @@ class NestThermostatAPI(NestAPI):
self._hvac_ac_state = thermostat_data["hvac_ac_state"]
self._hvac_heater_state = \
thermostat_data["hvac_heater_state"]
temp_mode = thermostat_data["target_temperature_type"]
if temp_mode is None:
temp_mode = thermostat_data["target_temperature_type"]
self.target_temperature_high = thermostat_data[
"target_temperature_high"
]