Skip to content

Commit

Permalink
Fix hassio with python3.11 (#92178)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Apr 28, 2023
1 parent c3d3bc4 commit 2bfa521
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion homeassistant/components/hassio/addon_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ async def async_setup_addon_panel(hass: HomeAssistant, hassio):
for addon, data in panels.items():
if not data[ATTR_ENABLE]:
continue
jobs.append(_register_panel(hass, addon, data))
jobs.append(
asyncio.create_task(
_register_panel(hass, addon, data), name=f"register panel {addon}"
)
)

if jobs:
await asyncio.wait(jobs)
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/hassio/ingress.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ async def _handle_websocket(
# Proxy requests
await asyncio.wait(
[
_websocket_forward(ws_server, ws_client),
_websocket_forward(ws_client, ws_server),
asyncio.create_task(_websocket_forward(ws_server, ws_client)),
asyncio.create_task(_websocket_forward(ws_client, ws_server)),
],
return_when=asyncio.FIRST_COMPLETED,
)
Expand Down

0 comments on commit 2bfa521

Please sign in to comment.