Use eager_start for homeassistant triggers (#112801)

pull/112804/head
J. Nick Koston 2024-03-08 22:10:44 -10:00 committed by GitHub
parent 693f72eff1
commit b591bb43f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 0 deletions

View File

@ -144,6 +144,7 @@ async def async_attach_trigger(
}
},
event.context,
eager_start=True,
)
removes = [

View File

@ -56,6 +56,7 @@ async def async_attach_trigger(
"description": "Home Assistant starting",
}
},
eager_start=True,
)
return lambda: None

View File

@ -187,6 +187,7 @@ async def async_attach_trigger(
}
},
to_s.context,
eager_start=True,
)
@callback

View File

@ -184,6 +184,7 @@ async def async_attach_trigger(
}
},
event.context,
eager_start=True,
)
if not time_delta:

View File

@ -76,6 +76,7 @@ async def async_attach_trigger(
"entity_id": entity_id,
}
},
eager_start=True,
)
@callback

View File

@ -93,6 +93,7 @@ async def async_attach_trigger(
"description": "time pattern",
}
},
eager_start=True,
)
return async_track_time_change(