mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
5eca487bcb
Breaking change as the CloudInfo interface is changing to snake case for consistency with the rest of the library.
14 lines
323 B
Python
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)
|