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 d888513 commit c9cad78
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions custom_components/eltako/eltako_integration_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from homeassistant.helpers.dispatcher import dispatcher_connect
from homeassistant.helpers.reload import async_reload_integration_platforms
from homeassistant.components.frontend import async_register_built_in_panel
from homeassistant.components import panel_custom, websocket_api
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er, device_registry as dr, entity_platform as pl

Expand Down Expand Up @@ -222,6 +223,17 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
},
)

await panel_custom.async_register_panel(
hass=hass,
frontend_url_path=DOMAIN,
webcomponent_name="eltako",
sidebar_title=DOMAIN,
sidebar_icon="mdi:bus-electric",
module_url=f"/frontend/index.html",
embed_iframe=True,
require_admin=False,
)

return True


Expand Down

0 comments on commit c9cad78

Please sign in to comment.