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 65f4300 commit 35a6a23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/eltako/eltako_integration_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ 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",
"/eltako",
# hass.config.path("custom_components/eltako/frontend/index.html"),
os.path.join(os.path.dirname(__file__), "/frontend/index.html"),
os.path.join(os.path.dirname(__file__), "/frontend"),
cache_headers=False,
)

Expand All @@ -204,7 +204,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": "/eltako/index.html" # Path to the panel HTML
},
require_admin=False,
)
Expand Down

0 comments on commit 35a6a23

Please sign in to comment.