Fix SIM300 (#120725)
This commit is contained in:
parent
c98e70a6dc
commit
03c6e0c55f
17 changed files with 103 additions and 96 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue