From c522670815fc5a89685fd51b436c73e5e63124e9 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 23 Mar 2022 21:11:46 +0100 Subject: [PATCH] Fix loading traces for automation with custom id (#12112) --- src/panels/config/automation/ha-config-automation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/config/automation/ha-config-automation.ts b/src/panels/config/automation/ha-config-automation.ts index a4fa5d38ab..70f2b16add 100644 --- a/src/panels/config/automation/ha-config-automation.ts +++ b/src/panels/config/automation/ha-config-automation.ts @@ -87,7 +87,7 @@ class HaConfigAutomation extends HassRouterPage { (!changedProps || changedProps.has("route")) && this._currentPage !== "dashboard" ) { - const automationId = this.routeTail.path.substr(1); + const automationId = decodeURIComponent(this.routeTail.path.substr(1)); pageEl.automationId = automationId === "new" ? null : automationId; } }