mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Use eager_start for homeassistant triggers (#112801)
This commit is contained in:
parent
693f72eff1
commit
b591bb43f5
@ -144,6 +144,7 @@ async def async_attach_trigger(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
event.context,
|
event.context,
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
removes = [
|
removes = [
|
||||||
|
@ -56,6 +56,7 @@ async def async_attach_trigger(
|
|||||||
"description": "Home Assistant starting",
|
"description": "Home Assistant starting",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
return lambda: None
|
return lambda: None
|
||||||
|
@ -187,6 +187,7 @@ async def async_attach_trigger(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
to_s.context,
|
to_s.context,
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
@ -184,6 +184,7 @@ async def async_attach_trigger(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
event.context,
|
event.context,
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not time_delta:
|
if not time_delta:
|
||||||
|
@ -76,6 +76,7 @@ async def async_attach_trigger(
|
|||||||
"entity_id": entity_id,
|
"entity_id": entity_id,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
@ -93,6 +93,7 @@ async def async_attach_trigger(
|
|||||||
"description": "time pattern",
|
"description": "time pattern",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
return async_track_time_change(
|
return async_track_time_change(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user