Add module.device to the public api (#1478)

This commit is contained in:
Steven B.
2025-01-29 18:49:38 +00:00
committed by GitHub
parent 82fbe1226e
commit ebd370da74
5 changed files with 15 additions and 10 deletions

View File

@@ -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()