mirror of
https://github.com/thekiwismarthome/shopping-list-manager.git
synced 2026-05-01 11:46:30 +00:00
Update __init__.py
This commit is contained in:
@@ -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]
|
||||
return hass.data[DOMAIN][DATA_STORAGE]
|
||||
|
||||
Reference in New Issue
Block a user