1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

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