Add state features to iot strip sockets (#960)

Fixes iot strip sockets not creating their own state and on_since features.
This commit is contained in:
Steven B
2024-06-07 10:52:11 +01:00
committed by GitHub
parent 5befe51c42
commit e1e2a396b8
2 changed files with 37 additions and 0 deletions

View File

@@ -88,6 +88,14 @@ async def test_get_plug_by_index(dev: IotStrip):
dev.get_plug_by_index(len(dev.children))
@strip
async def test_plug_features(dev: IotStrip):
"""Test the child plugs have default features."""
for child in dev.children:
assert "state" in child.features
assert "on_since" in child.features
@pytest.mark.skip("this test will wear out your relays")
async def test_all_binary_states(dev):
# test every binary state