Fix loading traces for automation with custom id (#12112)

This commit is contained in:
Erik Montnemery 2022-03-23 21:11:46 +01:00 committed by GitHub
parent 7b6d3c0e36
commit c522670815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}