Update surepetcare test (#56871)

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
This commit is contained in:
Daniel Hjelseth Høyer 2021-10-03 13:28:52 +02:00 committed by GitHub
parent f8b6fba3eb
commit 2fdef0e144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ async def test_unlock_failing(hass, surepetcare) -> None:
assert await async_setup_component(hass, DOMAIN, MOCK_CONFIG)
await hass.async_block_till_done()
entity_id = list(EXPECTED_ENTITY_IDS.keys())[0]
entity_id = list(EXPECTED_ENTITY_IDS)[0]
await hass.services.async_call(
"lock", "lock", {"entity_id": entity_id}, blocking=True