Add id to automation triggers (#48464)
This commit is contained in:
parent
450f3740cd
commit
b26779a27a
40 changed files with 168 additions and 56 deletions
|
@ -68,6 +68,7 @@ async def test_if_fires_on_zone_enter(hass, calls):
|
|||
"from_state.state",
|
||||
"to_state.state",
|
||||
"zone.name",
|
||||
"id",
|
||||
)
|
||||
)
|
||||
},
|
||||
|
@ -88,7 +89,7 @@ async def test_if_fires_on_zone_enter(hass, calls):
|
|||
assert calls[0].context.parent_id == context.id
|
||||
assert (
|
||||
calls[0].data["some"]
|
||||
== "geo_location - geo_location.entity - hello - hello - test"
|
||||
== "geo_location - geo_location.entity - hello - hello - test - 0"
|
||||
)
|
||||
|
||||
# Set out of zone again so we can trigger call
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue