Add id to automation triggers (#48464)

This commit is contained in:
Erik Montnemery 2021-03-31 14:56:04 +02:00 committed by GitHub
parent 450f3740cd
commit b26779a27a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 168 additions and 56 deletions

View file

@ -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