From 434a7c2e936f914d695d8ec212b8f6696c8fa242 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Tue, 24 Feb 2026 08:55:49 +0300 Subject: [PATCH] "Numeric state" trigger editor: add a "filter_entity" context to "attribute" selector (#29778) * add a "filter_entity" context to "attribute" selector * remove unused variable --- .../trigger/types/ha-automation-trigger-numeric_state.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts index db78f6fcd4..9e671c2c85 100644 --- a/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts +++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts @@ -27,7 +27,6 @@ export class HaNumericStateTrigger extends LitElement { private _schema = memoizeOne( ( localize: LocalizeFunc, - entityId: string | string[], inputAboveIsEntity?: boolean, inputBelowIsEntity?: boolean ) => @@ -39,9 +38,9 @@ export class HaNumericStateTrigger extends LitElement { }, { name: "attribute", + context: { filter_entity: "entity_id" }, selector: { attribute: { - entity_id: entityId ? entityId[0] : undefined, hide_attributes: [ "access_token", "auto_update", @@ -275,7 +274,6 @@ export class HaNumericStateTrigger extends LitElement { public render() { const schema = this._schema( this.hass.localize, - this.trigger.entity_id, this._inputAboveIsEntity, this._inputBelowIsEntity );