parameters: (_=None)
docstring: Startup wrapper for yaml config.
docstring_summary: Startup wrapper for yaml config.
docstring_tokens: Startup wrapper for yaml config .
function: async def async_startup_wrapper_for_yaml(_=None):
      """Startup wrapper for yaml config."""
      hacs = get_hacs()
      try:
          startup_result = await async_hacs_startup()
      except AIOGitHubAPIException:
          startup_result = False
      if not startup_result:
          hacs.system.disabled = True
          hacs.log.info("Could not setup HACS, trying again in 15 min")
          async_call_later(hacs.hass, 900, async_startup_wrapper_for_yaml)
          return
      hacs.enable_hacs()
function_tokens: async def async_startup_wrapper_for_yaml ( _ = None ) : hacs = get_hacs ( ) try : startup_result = await async_hacs_startup ( ) except AIOGitHubAPIException : startup_result = False if not startup_result : hacs . system . disabled = True hacs . log . info ( "Could not setup HACS, trying again in 15 min" ) async_call_later ( hacs . hass , 900 , async_startup_wrapper_for_yaml ) return hacs . enable_hacs ( )