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:
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user