Files
python-kasa/tests/iot/modules/test_cloud.py
ZeliardM da2588291d tests: add type annotations to IoT tests (#1685)
Add type annotations to all test functions across 8 files in `tests/iot/`, improving type safety and enabling mypy to check function bodies.
2026-07-05 18:31:48 +02:00

14 lines
331 B
Python

from kasa import Device, Module
from ...device_fixtures import device_iot
@device_iot
def test_cloud(dev: Device) -> None:
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)