1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-20 18:38:59 +00:00

Update to python 3.11 (#4296)

This commit is contained in:
Mike Degatano
2023-05-22 13:12:34 -04:00
committed by GitHub
parent 61a7e6a87d
commit 5ced4e2f3b
18 changed files with 132 additions and 31 deletions

View File

@@ -258,7 +258,12 @@ class HomeAssistant(FileConfiguration, CoreSysAttributes):
async def load(self) -> None:
"""Prepare Home Assistant object."""
await asyncio.wait([self.secrets.load(), self.core.load()])
await asyncio.wait(
[
self.sys_create_task(self.secrets.load()),
self.sys_create_task(self.core.load()),
]
)
# Register for events
self.sys_bus.register_event(BusEvent.HARDWARE_NEW_DEVICE, self._hardware_events)