mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 18:38:03 +00:00
Add Dimmer Configuration Support (#1484)
This commit is contained in:
@@ -11,7 +11,7 @@ from ..module import Module
|
||||
from ..protocols import BaseProtocol
|
||||
from .iotdevice import KasaException, requires_update
|
||||
from .iotplug import IotPlug
|
||||
from .modules import AmbientLight, Light, Motion
|
||||
from .modules import AmbientLight, Dimmer, Light, Motion
|
||||
|
||||
|
||||
class ButtonAction(Enum):
|
||||
@@ -87,6 +87,7 @@ class IotDimmer(IotPlug):
|
||||
# TODO: need to be figured out what's the best approach to detect support
|
||||
self.add_module(Module.IotMotion, Motion(self, "smartlife.iot.PIR"))
|
||||
self.add_module(Module.IotAmbientLight, AmbientLight(self, "smartlife.iot.LAS"))
|
||||
self.add_module(Module.IotDimmer, Dimmer(self, "smartlife.iot.dimmer"))
|
||||
self.add_module(Module.Light, Light(self, "light"))
|
||||
|
||||
@property # type: ignore
|
||||
|
Reference in New Issue
Block a user