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:
Ville Skyttä 2021-02-10 15:16:58 +02:00 committed by GitHub
parent 4b493c5ab9
commit a6358430b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 17 additions and 13 deletions

View file

@ -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
]