From 655cf053c7081634c6812a740dff94734998705b Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Mon, 26 Jun 2023 00:59:43 -0700 Subject: [PATCH] Include blueprint type in row id key (#16998) --- src/panels/config/blueprint/ha-blueprint-overview.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/panels/config/blueprint/ha-blueprint-overview.ts b/src/panels/config/blueprint/ha-blueprint-overview.ts index 0cbc479f48..44fd7f79c8 100644 --- a/src/panels/config/blueprint/ha-blueprint-overview.ts +++ b/src/panels/config/blueprint/ha-blueprint-overview.ts @@ -96,6 +96,7 @@ class HaBlueprintOverview extends LitElement { type, error: true, path, + fullpath: `${type}/${path}`, }); } else { result.push({ @@ -103,6 +104,7 @@ class HaBlueprintOverview extends LitElement { type, error: false, path, + fullpath: `${type}/${path}`, }); } }) @@ -154,6 +156,10 @@ class HaBlueprintOverview extends LitElement { direction: "asc", width: "25%", }, + fullpath: { + title: "fullpath", + hidden: true, + }, actions: { title: "", width: this.narrow ? undefined : "10%", @@ -233,7 +239,7 @@ class HaBlueprintOverview extends LitElement { .tabs=${configSections.automations} .columns=${this._columns(this.narrow, this.hass.language)} .data=${this._processedBlueprints(this.blueprints)} - id="path" + id="fullpath" .noDataText=${this.hass.localize( "ui.panel.config.blueprint.overview.no_blueprints" )} @@ -318,7 +324,7 @@ class HaBlueprintOverview extends LitElement { private _handleRowClicked(ev: HASSDomEvent) { const blueprint = this._processedBlueprints(this.blueprints).find( - (b) => b.path === ev.detail.id + (b) => b.fullpath === ev.detail.id ); if (blueprint.error) { showAlertDialog(this, {