fix panel v2

This commit is contained in:
Pascal Vizeli 2017-05-19 23:18:09 +02:00 committed by GitHub
parent fa51c2e6e9
commit 808df68e57

View File

@ -99,10 +99,9 @@ class RestAPI(object):
def register_panel(self): def register_panel(self):
"""Register panel for homeassistant.""" """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( self.webapp.router.add_get('/panel', web.FileResponse(panel))
web.StaticResource('/panel', panel_dir))
async def start(self): async def start(self):
"""Run rest api webserver.""" """Run rest api webserver."""