Update __init__.py

This commit is contained in:
Pascal Vizeli 2017-05-19 23:26:41 +02:00 committed by GitHub
parent f5e196a663
commit 58c0c67796

View File

@ -101,7 +101,7 @@ class RestAPI(object):
"""Register panel for homeassistant."""
panel = Path(__file__).parents[1].joinpath('panel/hassio-main.html')
def get_panel():
def get_panel(request):
"""Return file response with panel."""
return web.FileResponse(panel)