From fa633efc872e7fdf3cc1d933af86f92758fcfc7c Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Wed, 1 Apr 2026 09:43:42 +0100 Subject: [PATCH] Fix target item loading error (#51326) --- .../config/automation/add-automation-element-dialog.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panels/config/automation/add-automation-element-dialog.ts b/src/panels/config/automation/add-automation-element-dialog.ts index 1b9a6a4180..48ea70ee82 100644 --- a/src/panels/config/automation/add-automation-element-dialog.ts +++ b/src/panels/config/automation/add-automation-element-dialog.ts @@ -2051,7 +2051,8 @@ class DialogAddAutomationElement this.hass.localize, items, getTriggerDomain, - this._getTriggerListItem + (localize, domain, trigger) => + this._getTriggerListItem(localize, domain, trigger) ); if (this._selectedTarget.entity_id) { grouped.push({ @@ -2074,7 +2075,8 @@ class DialogAddAutomationElement this.hass.localize, items, getConditionDomain, - this._getConditionListItem + (localize, domain, condition) => + this._getConditionListItem(localize, domain, condition) ); if (this._selectedTarget.entity_id) { grouped.push({