Skip to content

Commit

Permalink
Fix startup race (#3612)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Apr 11, 2024
1 parent a742ff4 commit 3aeb0ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/hacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ async def async_startup():
if hacs.system.disabled:
return False

# Schedule startup tasks
async_at_start(hass=hass, at_start_cb=hacs.startup_tasks)

hacs.set_stage(HacsStage.WAITING)
hacs.log.info("Setup complete, waiting for Home Assistant before startup tasks starts")

# Schedule startup tasks
async_at_start(hass=hass, at_start_cb=hacs.startup_tasks)

return not hacs.system.disabled

async def async_try_startup(_=None):
Expand Down

0 comments on commit 3aeb0ea

Please sign in to comment.