From a14d75deecffb55096a2c843d8e882ef404271d1 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 21 Feb 2022 09:21:29 -0800 Subject: [PATCH] Add support for the media browser My link (#11757) --- src/panels/my/ha-panel-my.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/panels/my/ha-panel-my.ts b/src/panels/my/ha-panel-my.ts index d7be560e7b..c02fb74523 100644 --- a/src/panels/my/ha-panel-my.ts +++ b/src/panels/my/ha-panel-my.ts @@ -155,6 +155,10 @@ const REDIRECTS: Redirects = { component: "history", redirect: "/history", }, + media_browser: { + component: "media_source", + redirect: "/media-browser", + }, }; export type ParamType = "url" | "string"; @@ -178,7 +182,7 @@ class HaPanelMy extends LitElement { connectedCallback() { super.connectedCallback(); - const path = this.route.path.substr(1); + const path = this.route.path.substring(1); if (path.startsWith("supervisor")) { if (!isComponentLoaded(this.hass, "hassio")) {