mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add light presets common module to devices. (#907)
Adds light preset common module for switching to presets and saving presets. Deprecates the `presets` attribute and `save_preset` method from the `bulb` interface in favour of the modular approach. Allows setting preset for `iot` which was not previously supported.
This commit is contained in:
@@ -18,6 +18,7 @@ from .humiditysensor import HumiditySensor
|
||||
from .led import Led
|
||||
from .light import Light
|
||||
from .lighteffect import LightEffect
|
||||
from .lightpreset import LightPreset
|
||||
from .lightstripeffect import LightStripEffect
|
||||
from .lighttransition import LightTransition
|
||||
from .reportmode import ReportMode
|
||||
@@ -41,6 +42,7 @@ __all__ = [
|
||||
"Led",
|
||||
"Brightness",
|
||||
"Fan",
|
||||
"LightPreset",
|
||||
"Firmware",
|
||||
"Cloud",
|
||||
"Light",
|
||||
|
Reference in New Issue
Block a user