Fix rmvtransport integration with py3.11 (#88094)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
This commit is contained in:
parent
85b852d8ad
commit
f4ef64a7d7
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ async def async_setup_platform(
|
||||||
for next_departure in config[CONF_NEXT_DEPARTURE]
|
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:
|
if tasks:
|
||||||
await asyncio.wait(tasks)
|
await asyncio.wait(tasks)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue