Skip to content

Commit

Permalink
webpage test
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Dec 16, 2024
1 parent 90ac333 commit d9d5e10
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions custom_components/eltako/eltako_integration_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
Expand Down

0 comments on commit d9d5e10

Please sign in to comment.