From fa51c2e6e9eb634721f54e8d5d9dc5ce67e0b3d9 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 19 May 2017 22:51:46 +0200 Subject: [PATCH] use pathlib --- hassio/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hassio/api/__init__.py b/hassio/api/__init__.py index 44a656a69..5bc9ddec0 100644 --- a/hassio/api/__init__.py +++ b/hassio/api/__init__.py @@ -102,7 +102,7 @@ class RestAPI(object): panel_dir = Path(__file__).parents[1].joinpath('panel') self.webapp.router.register_resource( - web.StaticResource('/panel', str(panel_dir))) + web.StaticResource('/panel', panel_dir)) async def start(self): """Run rest api webserver."""