Migrate iot cloud module to mashumaro (#1282)

Breaking change as the CloudInfo interface is changing to snake case for
consistency with the rest of the library.
This commit is contained in:
Steven B.
2024-11-20 13:34:26 +00:00
committed by GitHub
parent df48c21900
commit 5eca487bcb
3 changed files with 31 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
from kasa import Device, Module
from ...device_fixtures import device_iot
@device_iot
def test_cloud(dev: Device):
cloud = dev.modules.get(Module.IotCloud)
assert cloud
info = cloud.info
assert info
assert isinstance(info.provisioned, int)
assert cloud.is_connected == bool(info.cloud_connected)