Make eager_start default to True for async_create_background_task (#114996)

This commit is contained in:
J. Nick Koston 2024-04-06 09:53:50 -10:00 committed by GitHub
parent 8f425b9ea7
commit 166910f587
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 3 deletions

View file

@ -149,7 +149,9 @@ class OllamaConfigFlow(ConfigFlow, domain=DOMAIN):
# The task will block until the model and metadata are fully
# downloaded.
self.download_task = self.hass.async_create_background_task(
self.client.pull(self.model), f"Downloading {self.model}"
self.client.pull(self.model),
f"Downloading {self.model}",
eager_start=False,
)
if self.download_task.done():