Import panel_custom (#64541)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
bb671830a6
commit
dbc6e41264
2 changed files with 6 additions and 4 deletions
|
@ -5,7 +5,7 @@ import logging
|
|||
|
||||
from aiohttp import web
|
||||
|
||||
from homeassistant.components import frontend
|
||||
from homeassistant.components import frontend, panel_custom
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from homeassistant.const import ATTR_ICON
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
@ -78,7 +78,8 @@ class HassIOAddonPanel(HomeAssistantView):
|
|||
|
||||
async def _register_panel(hass, addon, data):
|
||||
"""Init coroutine to register the panel."""
|
||||
await hass.components.panel_custom.async_register_panel(
|
||||
await panel_custom.async_register_panel(
|
||||
hass,
|
||||
frontend_url_path=addon,
|
||||
webcomponent_name="hassio-main",
|
||||
sidebar_title=data[ATTR_TITLE],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue