Import frontend (#64104)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
4bce92dd2d
commit
946238fb02
12 changed files with 31 additions and 29 deletions
|
@ -5,6 +5,7 @@ import logging
|
|||
|
||||
from aiohttp import web
|
||||
|
||||
from homeassistant.components import frontend
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from homeassistant.const import ATTR_ICON
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
@ -62,7 +63,7 @@ class HassIOAddonPanel(HomeAssistantView):
|
|||
|
||||
async def delete(self, request, addon):
|
||||
"""Handle remove add-on panel requests."""
|
||||
self.hass.components.frontend.async_remove_panel(addon)
|
||||
frontend.async_remove_panel(self.hass, addon)
|
||||
return web.Response()
|
||||
|
||||
async def get_panels(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue