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:
@@ -8,6 +8,7 @@ from .emeter import Emeter
|
||||
from .led import Led
|
||||
from .light import Light
|
||||
from .lighteffect import LightEffect
|
||||
from .lightpreset import IotLightPreset, LightPreset
|
||||
from .motion import Motion
|
||||
from .rulemodule import Rule, RuleModule
|
||||
from .schedule import Schedule
|
||||
@@ -23,6 +24,8 @@ __all__ = [
|
||||
"Led",
|
||||
"Light",
|
||||
"LightEffect",
|
||||
"LightPreset",
|
||||
"IotLightPreset",
|
||||
"Motion",
|
||||
"Rule",
|
||||
"RuleModule",
|
||||
|
Reference in New Issue
Block a user