Skip to content

Commit

Permalink
test registered views
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Dec 13, 2024
1 parent 384dd40 commit dade964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/eltako/eltako_integration_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)

hass.http.register_static_path(
"/custom_components/eltako/frontend/index.html",
"/config/custom_components/eltako/frontend/index.html",
hass.config.path("custom_components/eltako/frontend/index.html"),
cache_headers=False,
)
Expand All @@ -201,7 +201,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
"mdi:web", # Panel icon
frontend_url_path="eltako", # URL path for the panel
config={
"url": "/custom_components/eltako/frontend/index.html" # Path to the panel HTML
"url": "/config/custom_components/eltako/frontend/index.html" # Path to the panel HTML
},
)

Expand Down

0 comments on commit dade964

Please sign in to comment.