mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 22:56:31 +00:00
fix panel v2
This commit is contained in:
parent
fa51c2e6e9
commit
808df68e57
@ -99,10 +99,9 @@ class RestAPI(object):
|
||||
|
||||
def register_panel(self):
|
||||
"""Register panel for homeassistant."""
|
||||
panel_dir = Path(__file__).parents[1].joinpath('panel')
|
||||
panel = Path(__file__).parents[1].joinpath('panel/hassio-main.html')
|
||||
|
||||
self.webapp.router.register_resource(
|
||||
web.StaticResource('/panel', panel_dir))
|
||||
self.webapp.router.add_get('/panel', web.FileResponse(panel))
|
||||
|
||||
async def start(self):
|
||||
"""Run rest api webserver."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user