mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Add id to automation triggers (#48464)
This commit is contained in:
@@ -55,6 +55,7 @@ async def test_if_fires_on_entity_change(hass, calls):
|
||||
"from_state.state",
|
||||
"to_state.state",
|
||||
"for",
|
||||
"id",
|
||||
)
|
||||
)
|
||||
},
|
||||
@@ -68,7 +69,7 @@ async def test_if_fires_on_entity_change(hass, calls):
|
||||
await hass.async_block_till_done()
|
||||
assert len(calls) == 1
|
||||
assert calls[0].context.parent_id == context.id
|
||||
assert calls[0].data["some"] == "state - test.entity - hello - world - None"
|
||||
assert calls[0].data["some"] == "state - test.entity - hello - world - None - 0"
|
||||
|
||||
await hass.services.async_call(
|
||||
automation.DOMAIN,
|
||||
|
||||
Reference in New Issue
Block a user