From d9d5e10f13133fd9b6dd5e2d60d0307171cb95ef Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Mon, 16 Dec 2024 15:38:09 +0100 Subject: [PATCH] webpage test --- .../eltako/eltako_integration_init.py | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/custom_components/eltako/eltako_integration_init.py b/custom_components/eltako/eltako_integration_init.py index cb005d8..8eb6ea6 100644 --- a/custom_components/eltako/eltako_integration_init.py +++ b/custom_components/eltako/eltako_integration_init.py @@ -198,6 +198,19 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b cache_headers=False, ) + # Register the sidebar panel + hass.components.frontend.async_register_built_in_panel( + component_name="iframe", # Use iframe to embed the view + sidebar_title="Eltako", # Title in the sidebar + sidebar_icon="mdi:view-dashboard", # Icon for the sidebar + frontend_url_path="eltako", # URL in the sidebar + + config={ + "url": "/eltako/index.html" # URL served by the view + }, + ) + + # hass.http.register_view(InfoPageView()) # async_register_built_in_panel( @@ -215,19 +228,6 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b # hass.http.register_view(InfoPageView()) - # Register the sidebar panel - hass.components.frontend.async_register_built_in_panel( - component_name="iframe", # Use iframe to embed the view - sidebar_title="Eltako", # Title in the sidebar - sidebar_icon="mdi:view-dashboard", # Icon for the sidebar - frontend_url_path="eltako", # URL in the sidebar - - config={ - "url": "/frontend/index.html" # URL served by the view - }, - ) - - # await panel_custom.async_register_panel( # hass=hass, # frontend_url_path=DOMAIN,