mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-16 20:38:02 +00:00
Make Light and Fan a common module interface (#911)
This commit is contained in:
@@ -20,7 +20,7 @@ async def test_light_effect(dev: Device, mocker: MockerFixture):
|
||||
light_effect = dev.modules.get(Module.LightEffect)
|
||||
assert isinstance(light_effect, LightEffect)
|
||||
|
||||
feature = light_effect._module_features["light_effect"]
|
||||
feature = dev.features["light_effect"]
|
||||
assert feature.type == Feature.Type.Choice
|
||||
|
||||
call = mocker.spy(light_effect, "call")
|
||||
|
Reference in New Issue
Block a user