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.
This commit is contained in:
ZeliardM
2026-07-05 12:31:48 -04:00
committed by GitHub
parent bb27a43027
commit da2588291d
15 changed files with 151 additions and 126 deletions

View File

@@ -1,8 +1,10 @@
from kasa.iot import IotWallSwitch
from ..device_fixtures import wallswitch_iot
@wallswitch_iot
def test_wallswitch_motion(dev):
def test_wallswitch_motion(dev: IotWallSwitch) -> None:
"""Check that wallswitches with motion sensor get modules enabled."""
has_motion = "PIR" in dev.sys_info["dev_name"]
assert "motion" in dev.modules if has_motion else True