From 11696c566a78d1166c72ef24c538de653d6cce87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Thu, 31 Mar 2022 16:05:39 +0200 Subject: [PATCH] Add support for my backup links (#12172) --- src/panels/my/ha-panel-my.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/panels/my/ha-panel-my.ts b/src/panels/my/ha-panel-my.ts index c02fb74523..e2e2586732 100644 --- a/src/panels/my/ha-panel-my.ts +++ b/src/panels/my/ha-panel-my.ts @@ -117,6 +117,10 @@ const REDIRECTS: Redirects = { component: "lovelace", redirect: "/config/lovelace/resources", }, + backup: { + component: "backup", + redirect: "/config/backup", + }, people: { component: "person", redirect: "/config/person", @@ -184,6 +188,13 @@ class HaPanelMy extends LitElement { super.connectedCallback(); const path = this.route.path.substring(1); + if (path === "backup" && isComponentLoaded(this.hass, "hassio")) { + navigate("/hassio/backups", { + replace: true, + }); + return; + } + if (path.startsWith("supervisor")) { if (!isComponentLoaded(this.hass, "hassio")) { this._error = "no_supervisor";