Fix rmvtransport integration with py3.11 (#88094)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`pull/88106/head
parent
85b852d8ad
commit
f4ef64a7d7
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue