(hacs)
Configure the HACS frontend elements.
Configure the HACS frontend elements.
Configure the HACS frontend elements .
async def setup_frontend(hacs):
    """Configure the HACS frontend elements."""
    # Define views
    hacs.hass.http.register_view(HacsAPI())
    hacs.hass.http.register_view(HacsPlugin())
    hacs.hass.http.register_view(HacsPluginView())
    hacs.hass.http.register_view(HacsRunningTask())
    hacs.hass.http.register_view(HacsWebResponse())

    # Add to sidepanel
    hacs.hass.components.frontend.async_register_built_in_panel(
        "iframe",
        hacs.configuration.sidepanel_title,
        hacs.configuration.sidepanel_icon,
        hacs.configuration.sidepanel_title.lower().replace(" ", "_").replace("-", "_"),
        {"url": hacs.hacsweb + "/overview"},
        require_admin=True,
    )
async def setup_frontend ( hacs ) : # Define views hacs . hass . http . register_view ( HacsAPI ( ) ) hacs . hass . http . register_view ( HacsPlugin ( ) ) hacs . hass . http . register_view ( HacsPluginView ( ) ) hacs . hass . http . register_view ( HacsRunningTask ( ) ) hacs . hass . http . register_view ( HacsWebResponse ( ) ) # Add to sidepanel hacs . hass . components . frontend . async_register_built_in_panel ( "iframe" , hacs . configuration . sidepanel_title , hacs . configuration . sidepanel_icon , hacs . configuration . sidepanel_title . lower ( ) . replace ( " " , "_" ) . replace ( "-" , "_" ) , { "url" : hacs . hacsweb + "/overview" } , require_admin = True , )