1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Fix panel & new startup type (#62)

* Fix pannel

* Add new startup  type
This commit is contained in:
Pascal Vizeli
2017-05-19 22:31:34 +02:00
committed by GitHub
parent fe91f812d9
commit ad1a8557b8
4 changed files with 13 additions and 7 deletions

View File

@@ -99,10 +99,10 @@ 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', str(panel_dir)))
web.StaticResource('/panel', str(panel)))
async def start(self):
"""Run rest api webserver."""