mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 11:43:34 +00:00
10 lines
340 B
Python
10 lines
340 B
Python
from ..device_fixtures import wallswitch_iot
|
|
|
|
|
|
@wallswitch_iot
|
|
def test_wallswitch_motion(dev):
|
|
"""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
|
|
assert "ambient" in dev.modules if has_motion else True
|