From ba3760e7705745efecf65f524252d00e2ce6fde3 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 19 May 2017 22:48:17 +0200 Subject: [PATCH] Revert API change --- hassio/api/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hassio/api/__init__.py b/hassio/api/__init__.py index 52e934642..44a656a69 100644 --- a/hassio/api/__init__.py +++ b/hassio/api/__init__.py @@ -99,10 +99,10 @@ class RestAPI(object): def register_panel(self): """Register panel for homeassistant.""" - panel = Path(__file__).parents[1].joinpath('panel/hassio-main.html') + panel_dir = Path(__file__).parents[1].joinpath('panel') self.webapp.router.register_resource( - web.StaticResource('/panel', str(panel))) + web.StaticResource('/panel', str(panel_dir))) async def start(self): """Run rest api webserver."""