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

Fix copy-past error in humidity setter code

This commit is contained in:
Chris Marcellino 2020-01-20 07:18:37 -06:00
parent f1ebd8a2f7
commit cbc8702ee0

View File

@ -387,11 +387,11 @@ class NestAPI():
except requests.exceptions.RequestException as e:
_LOGGER.error(e)
_LOGGER.error('Failed to set humidity, trying again')
self.thermostat_set_target_humidity(device_id, mode)
self.thermostat_set_target_humidity(device_id, humidity)
except KeyError:
_LOGGER.debug('Failed to set humidity, trying to log in again')
self.login()
self.thermostat_set_target_humidity(device_id, mode)
self.thermostat_set_target_humidity(device_id, humidity)
def thermostat_set_mode(self, device_id, mode):
if device_id not in self.thermostats: