mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 02:18: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:
@@ -2,13 +2,15 @@
|
||||
|
||||
from .fan import Fan
|
||||
from .led import Led
|
||||
from .light import Light, LightPreset
|
||||
from .light import Light, LightState
|
||||
from .lighteffect import LightEffect
|
||||
from .lightpreset import LightPreset
|
||||
|
||||
__all__ = [
|
||||
"Fan",
|
||||
"Led",
|
||||
"Light",
|
||||
"LightEffect",
|
||||
"LightState",
|
||||
"LightPreset",
|
||||
]
|
||||
|
Reference in New Issue
Block a user