mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-07-08 14:52:03 +00:00
Add type annotations to all test functions across 8 files in `tests/iot/`, improving type safety and enabling mypy to check function bodies.
14 lines
331 B
Python
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)
|