mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Add module.device to the public api (#1478)
This commit is contained in:
@@ -58,7 +58,7 @@ async def test_fan_module(dev: SmartDevice, mocker: MockerFixture):
|
||||
assert isinstance(dev, SmartDevice)
|
||||
fan = next(get_parent_and_child_modules(dev, Module.Fan))
|
||||
assert fan
|
||||
device = fan._device
|
||||
device = fan.device
|
||||
|
||||
await fan.set_fan_speed_level(1)
|
||||
await dev.update()
|
||||
|
Reference in New Issue
Block a user