Fix tests

This commit is contained in:
Steven B
2024-12-20 10:55:21 +00:00
parent a99af97b65
commit 759eb092d5
3 changed files with 7 additions and 6 deletions

View File

@@ -137,8 +137,9 @@ async def test_query_helper(dev):
@device_iot
@turn_on
async def test_state(dev, turn_on):
await handle_turn_on(dev, turn_on)
orig_state = dev.is_on
await handle_turn_on(dev, turn_on)
await dev.update()
if orig_state:
await dev.turn_off()
await dev.update()