From cfe478245f42db6f4c1f16fef0ac563e40cc791f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 26 Feb 2024 16:31:52 -1000 Subject: [PATCH] Migrate gather_with_limited_concurrency to use create_eager_task (#111565) --- homeassistant/util/async_.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/util/async_.py b/homeassistant/util/async_.py index 2fb44b0623b..36589e01d65 100644 --- a/homeassistant/util/async_.py +++ b/homeassistant/util/async_.py @@ -216,7 +216,8 @@ async def gather_with_limited_concurrency( return await task return await gather( - *(sem_task(task) for task in tasks), return_exceptions=return_exceptions + *(create_eager_task(sem_task(task)) for task in tasks), + return_exceptions=return_exceptions, )