mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Add missed saves
This commit is contained in:
parent
da83bcc589
commit
2b34b9efc6
@ -52,9 +52,9 @@ True
|
||||
>>> await dev.update()
|
||||
>>> light.brightness
|
||||
50
|
||||
>>> light.has_feature(light.set_hsv)
|
||||
>>> light.has_feature("hsv")
|
||||
True
|
||||
>>> if light.has_feature(light.set_hsv):
|
||||
>>> if light.has_feature("hsv"):
|
||||
>>> print(light.hsv)
|
||||
HSV(hue=0, saturation=100, value=50)
|
||||
|
||||
|
@ -529,23 +529,23 @@ class Device(ABC):
|
||||
vals: dict[str, tuple[ModuleName, Callable[[Any], Any], str]] = {
|
||||
"is_dimmable": (
|
||||
Module.Light,
|
||||
lambda c: c.has_feature("set_brightness"),
|
||||
"light_module.has_feature('set_brightness')",
|
||||
lambda c: c.has_feature("brightness"),
|
||||
"light_module.has_feature('brightness')",
|
||||
),
|
||||
"is_color": (
|
||||
Module.Light,
|
||||
lambda c: c.has_feature("set_hsv"),
|
||||
"light_module.has_feature('set_hsv')",
|
||||
lambda c: c.has_feature("hsv"),
|
||||
"light_module.has_feature('hsv')",
|
||||
),
|
||||
"is_variable_color_temp": (
|
||||
Module.Light,
|
||||
lambda c: c.has_feature("set_color_temp"),
|
||||
"light_module.has_feature('set_color_temp')",
|
||||
lambda c: c.has_feature("color_temp"),
|
||||
"light_module.has_feature('color_temp')",
|
||||
),
|
||||
"valid_temperature_range": (
|
||||
Module.Light,
|
||||
lambda c: c._deprecated_valid_temperature_range(),
|
||||
"minimum and maximum value of get_feature('set_color_temp')",
|
||||
"minimum and maximum value of get_feature('color_temp')",
|
||||
),
|
||||
"has_effects": (
|
||||
Module.Light,
|
||||
|
Loading…
Reference in New Issue
Block a user