Fix rmvtransport integration with py3.11 (#88094)

In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
pull/88106/head
J. Nick Koston 2023-02-14 10:32:36 -06:00 committed by GitHub
parent 85b852d8ad
commit f4ef64a7d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ async def async_setup_platform(
for next_departure in config[CONF_NEXT_DEPARTURE]
]
tasks = [sensor.async_update() for sensor in sensors]
tasks = [asyncio.create_task(sensor.async_update()) for sensor in sensors]
if tasks:
await asyncio.wait(tasks)