Fix deprecated asyncio.wait use with coroutines (#44981)
https://docs.python.org/3/library/asyncio-task.html#asyncio-example-wait-coroutine
This commit is contained in:
parent
4b493c5ab9
commit
a6358430b4
11 changed files with 17 additions and 13 deletions
|
@ -602,8 +602,10 @@ async def entity_service_call(
|
|||
|
||||
done, pending = await asyncio.wait(
|
||||
[
|
||||
entity.async_request_call(
|
||||
_handle_entity_call(hass, entity, func, data, call.context)
|
||||
asyncio.create_task(
|
||||
entity.async_request_call(
|
||||
_handle_entity_call(hass, entity, func, data, call.context)
|
||||
)
|
||||
)
|
||||
for entity in entities
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue