python-kasa/tests/iot/modules/test_cloud.py
Steven B. 5eca487bcb
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.
2024-11-20 14:34:26 +01:00

14 lines
323 B
Python

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)