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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user