Make eager_start default to True for async_create_background_task (#114996)
This commit is contained in:
parent
8f425b9ea7
commit
166910f587
4 changed files with 6 additions and 3 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue