diff --git a/custom_components/shopping_list_manager/__init__.py b/custom_components/shopping_list_manager/__init__.py index fcd152a..ea2a1b7 100644 --- a/custom_components/shopping_list_manager/__init__.py +++ b/custom_components/shopping_list_manager/__init__.py @@ -155,12 +155,9 @@ async def _async_register_websocket_handlers( async def _async_register_frontend(hass: HomeAssistant) -> None: """Register frontend resources.""" - # Register the custom card - hass.http.register_static_path( - f"/hacsfiles/{DOMAIN}", - hass.config.path(f"custom_components/{DOMAIN}/www"), - True, - ) + # Since frontend is a separate HACS module, we don't need to register it here + # The frontend card registers itself independently + _LOGGER.debug("Frontend resources skipped (separate HACS module)") _LOGGER.debug("Frontend resources registered") @@ -170,4 +167,4 @@ def get_storage(hass: HomeAssistant) -> ShoppingListStorage: Helper function for WebSocket handlers to access storage. """ - return hass.data[DOMAIN][DATA_STORAGE] \ No newline at end of file + return hass.data[DOMAIN][DATA_STORAGE]