diff --git a/hassio/api/__init__.py b/hassio/api/__init__.py index 32f453bec..4c3f50353 100644 --- a/hassio/api/__init__.py +++ b/hassio/api/__init__.py @@ -246,29 +246,6 @@ class RestAPI(CoreSysAttributes): def _register_panel(self) -> None: """Register panel for Home Assistant.""" panel_dir = Path(__file__).parent.joinpath("panel") - - def create_response(panel_file): - """Create a function to generate a response.""" - path = panel_dir.joinpath(f"{panel_file!s}.html") - return lambda request: web.FileResponse(path) - - # This route is for backwards compatibility with HA < 0.58 - self.webapp.add_routes( - [web.get('/panel', create_response('hassio-main-es5'))]) - - # This route is for backwards compatibility with HA 0.58 - 0.61 - self.webapp.add_routes([ - web.get('/panel_es5', create_response('hassio-main-es5')), - web.get('/panel_latest', create_response('hassio-main-latest')), - ]) - - # This route is for backwards compatibility with HA 0.62 - 0.70 - self.webapp.add_routes([ - web.get('/app-es5/index.html', create_response('index')), - web.get('/app-es5/hassio-app.html', create_response('hassio-app')), - ]) - - # This route is for HA > 0.70 self.webapp.add_routes([web.static('/app', panel_dir)]) async def start(self) -> None: diff --git a/hassio/api/panel/hassio-app.html b/hassio/api/panel/hassio-app.html deleted file mode 100644 index 6be5ad25a..000000000 --- a/hassio/api/panel/hassio-app.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/hassio/api/panel/hassio-app.html.gz b/hassio/api/panel/hassio-app.html.gz deleted file mode 100644 index c7d8b2a96..000000000 Binary files a/hassio/api/panel/hassio-app.html.gz and /dev/null differ diff --git a/hassio/api/panel/hassio-main-es5.html b/hassio/api/panel/hassio-main-es5.html deleted file mode 100644 index 54fc052e5..000000000 --- a/hassio/api/panel/hassio-main-es5.html +++ /dev/null @@ -1,72 +0,0 @@ -
Hostname | [[data.hostname]] |
Type | [[data.type]] |
OS | [[data.os]] |
Host Control version | [[data.version]] |
Latest available version | [[data.last_version]] |
Current version | [[data.version]] |
Latest version | [[data.last_version]] |
Version | [[data.version]] |
Beta channel | [[data.beta_channel]] |
Latest available version | [[data.last_version]] |
Container | Host |
---|---|
[[item.container]] |
[[addonLogs]]
Configure which add-on repositories to fetch data from. One repository per line.
[[addon.description]]
Made available via repository [[addon.repository]].
This add-on will built locally on the device.
[[logs]]
[[_error]]
Looks like you don't have any snapshots yet.
Hostname | [[data.hostname]] |
Type | [[data.type]] |
OS | [[data.os]] |
Host Control version | [[data.version]] |
Latest available version | [[data.last_version]] |
Current version | [[data.version]] |
Latest version | [[data.last_version]] |
Version | [[data.version]] |
Beta channel | [[data.beta_channel]] |
Latest available version | [[data.last_version]] |
Container | Host |
---|---|
[[item.container]] |
[[addonLogs]]
Configure which add-on repositories to fetch data from. One repository per line.
[[addon.description]]
Made available via repository [[addon.repository]].
This add-on will built locally on the device.
[[logs]]
[[_error]]
Looks like you don't have any snapshots yet.