1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 15:20:09 -07:00

Friendlier device-level config method

This commit is contained in:
Adrian Sampson 2018-04-21 14:31:49 -04:00
parent 5da0c4a281
commit d3cee73759

View File

@ -760,6 +760,15 @@ class ACDevice(object):
{key: value},
)
def _get_config(self, key):
"""Look up a device's configuration for a given value.
"""
return self.client.session.get_device_config(
self.device.id,
key,
)
def set_celsius(self, c):
"""Set the device's target temperature in Celsius degrees.
"""