mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-16 23:30:10 -07:00
Friendlier device-level config method
This commit is contained in:
parent
5da0c4a281
commit
d3cee73759
9
wideq.py
9
wideq.py
@ -760,6 +760,15 @@ class ACDevice(object):
|
|||||||
{key: value},
|
{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):
|
def set_celsius(self, c):
|
||||||
"""Set the device's target temperature in Celsius degrees.
|
"""Set the device's target temperature in Celsius degrees.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user