mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-09-06 05:51:53 +01:00
Fix copy-past error in humidity setter code
This commit is contained in:
@@ -387,11 +387,11 @@ class NestAPI():
|
|||||||
except requests.exceptions.RequestException as e:
|
except requests.exceptions.RequestException as e:
|
||||||
_LOGGER.error(e)
|
_LOGGER.error(e)
|
||||||
_LOGGER.error('Failed to set humidity, trying again')
|
_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:
|
except KeyError:
|
||||||
_LOGGER.debug('Failed to set humidity, trying to log in again')
|
_LOGGER.debug('Failed to set humidity, trying to log in again')
|
||||||
self.login()
|
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):
|
def thermostat_set_mode(self, device_id, mode):
|
||||||
if device_id not in self.thermostats:
|
if device_id not in self.thermostats:
|
||||||
|
Reference in New Issue
Block a user