mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Fix hassio integration with py3.11 (#88090)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
This commit is contained in:
@@ -47,7 +47,7 @@ def async_setup_discovery_view(hass: HomeAssistant, hassio):
|
||||
return
|
||||
|
||||
jobs = [
|
||||
hassio_discovery.async_process_new(discovery)
|
||||
asyncio.create_task(hassio_discovery.async_process_new(discovery))
|
||||
for discovery in data[ATTR_DISCOVERY]
|
||||
]
|
||||
if jobs:
|
||||
|
Reference in New Issue
Block a user