This commit is contained in:
Joost Lekkerkerker 2024-06-28 10:46:02 +02:00 committed by GitHub
parent c98e70a6dc
commit 03c6e0c55f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 103 additions and 96 deletions

View file

@ -178,7 +178,7 @@ async def test_service_specify_entity_id(
hass.bus.async_fire("test_event")
await hass.async_block_till_done()
assert len(calls) == 1
assert ["hello.world"] == calls[0].data.get(ATTR_ENTITY_ID)
assert calls[0].data.get(ATTR_ENTITY_ID) == ["hello.world"]
async def test_service_specify_entity_id_list(
@ -202,7 +202,7 @@ async def test_service_specify_entity_id_list(
hass.bus.async_fire("test_event")
await hass.async_block_till_done()
assert len(calls) == 1
assert ["hello.world", "hello.world2"] == calls[0].data.get(ATTR_ENTITY_ID)
assert calls[0].data.get(ATTR_ENTITY_ID) == ["hello.world", "hello.world2"]
async def test_two_triggers(hass: HomeAssistant, calls: list[ServiceCall]) -> None:
@ -1641,7 +1641,7 @@ async def test_automation_not_trigger_on_bootstrap(hass: HomeAssistant) -> None:
await hass.async_block_till_done()
assert len(calls) == 1
assert ["hello.world"] == calls[0].data.get(ATTR_ENTITY_ID)
assert calls[0].data.get(ATTR_ENTITY_ID) == ["hello.world"]
@pytest.mark.parametrize(