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 f04995a commit 22fa2ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/eltako/eltako_integration_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,22 +197,22 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
# cache_headers=False,
# )


hass.http.register_view(InfoPageView())

async_register_built_in_panel(
hass,
"iframe", # Panel type
"Eltako", # Panel title
"mdi:web", # Panel icon
frontend_url_path="eltako", # URL path for the panel
frontend_url_path="/eltako", # URL path for the panel
config={
"url": "/eltako" # Path to the panel HTML
"url": "/eltako?auth_callback=1" # Path to the panel HTML
},
require_admin=True,
require_admin=False,
)


# 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
Expand Down

0 comments on commit 22fa2ca

Please sign in to comment.