Update __init__.py

This commit is contained in:
thekiwismarthome
2026-02-13 14:25:46 +13:00
committed by GitHub
parent 4a9a12ea7a
commit acce175d0a
@@ -155,12 +155,9 @@ async def _async_register_websocket_handlers(
async def _async_register_frontend(hass: HomeAssistant) -> None: async def _async_register_frontend(hass: HomeAssistant) -> None:
"""Register frontend resources.""" """Register frontend resources."""
# Register the custom card # Since frontend is a separate HACS module, we don't need to register it here
hass.http.register_static_path( # The frontend card registers itself independently
f"/hacsfiles/{DOMAIN}", _LOGGER.debug("Frontend resources skipped (separate HACS module)")
hass.config.path(f"custom_components/{DOMAIN}/www"),
True,
)
_LOGGER.debug("Frontend resources registered") _LOGGER.debug("Frontend resources registered")