(hacs)
Startup wrapper for yaml config.
Startup wrapper for yaml config.
Startup wrapper for yaml config .
async def startup_wrapper_for_yaml(hacs):
    """Startup wrapper for yaml config."""
    startup_result = await hacs_startup(hacs)
    if not startup_result:
        hacs.hass.components.frontend.async_remove_panel(
            hacs.configuration.sidepanel_title.lower()
            .replace(" ", "_")
            .replace("-", "_")
        )
        hacs.logger.info("Could not setup HACS, trying again in 15 min")
        async_call_later(hacs.hass, 900, startup_wrapper_for_yaml(hacs))
async def startup_wrapper_for_yaml ( hacs ) : startup_result = await hacs_startup ( hacs ) if not startup_result : hacs . hass . components . frontend . async_remove_panel ( hacs . configuration . sidepanel_title . lower ( ) . replace ( " " , "_" ) . replace ( "-" , "_" ) ) hacs . logger . info ( "Could not setup HACS, trying again in 15 min" ) async_call_later ( hacs . hass , 900 , startup_wrapper_for_yaml ( hacs ) )