Use eager_start for homeassistant triggers (#112801)
parent
693f72eff1
commit
b591bb43f5
|
@ -144,6 +144,7 @@ async def async_attach_trigger(
|
|||
}
|
||||
},
|
||||
event.context,
|
||||
eager_start=True,
|
||||
)
|
||||
|
||||
removes = [
|
||||
|
|
|
@ -56,6 +56,7 @@ async def async_attach_trigger(
|
|||
"description": "Home Assistant starting",
|
||||
}
|
||||
},
|
||||
eager_start=True,
|
||||
)
|
||||
|
||||
return lambda: None
|
||||
|
|
|
@ -187,6 +187,7 @@ async def async_attach_trigger(
|
|||
}
|
||||
},
|
||||
to_s.context,
|
||||
eager_start=True,
|
||||
)
|
||||
|
||||
@callback
|
||||
|
|
|
@ -184,6 +184,7 @@ async def async_attach_trigger(
|
|||
}
|
||||
},
|
||||
event.context,
|
||||
eager_start=True,
|
||||
)
|
||||
|
||||
if not time_delta:
|
||||
|
|
|
@ -76,6 +76,7 @@ async def async_attach_trigger(
|
|||
"entity_id": entity_id,
|
||||
}
|
||||
},
|
||||
eager_start=True,
|
||||
)
|
||||
|
||||
@callback
|
||||
|
|
|
@ -93,6 +93,7 @@ async def async_attach_trigger(
|
|||
"description": "time pattern",
|
||||
}
|
||||
},
|
||||
eager_start=True,
|
||||
)
|
||||
|
||||
return async_track_time_change(
|
||||
|
|
Loading…
Reference in New Issue