Make eager_start default to True for config entry async_create_background_task (#115050)

This commit is contained in:
J. Nick Koston
2024-04-06 10:59:24 -10:00
committed by GitHub
parent 166910f587
commit 52957849cf

View File

@@ -1080,7 +1080,7 @@ class ConfigEntry:
hass: HomeAssistant, hass: HomeAssistant,
target: Coroutine[Any, Any, _R], target: Coroutine[Any, Any, _R],
name: str, name: str,
eager_start: bool = False, eager_start: bool = True,
) -> asyncio.Task[_R]: ) -> asyncio.Task[_R]:
"""Create a background task tied to the config entry lifecycle. """Create a background task tied to the config entry lifecycle.