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

Fix eco going in and out on UI

This commit is contained in:
Jacob McSwain 2019-10-22 13:46:47 -05:00
parent 98daabc5d7
commit 68e71850be
No known key found for this signature in database
GPG Key ID: 59957AD09B94EDF5

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"
]