From f193563649b2f0316de00f50b46e7648a4cf60d5 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Mon, 6 Mar 2023 02:47:09 -0800 Subject: [PATCH] Disable attribute validation on initial load of ha-selector-attribute (#15697)Co-authored-by: Bram Kragten * Disable attribute validation on initial load of ha-selector-attribute * Update src/components/ha-selector/ha-selector-attribute.ts --------- Co-authored-by: Bram Kragten --- src/components/ha-selector/ha-selector-attribute.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ha-selector/ha-selector-attribute.ts b/src/components/ha-selector/ha-selector-attribute.ts index 50e1367dbe..597792283c 100644 --- a/src/components/ha-selector/ha-selector-attribute.ts +++ b/src/components/ha-selector/ha-selector-attribute.ts @@ -59,7 +59,8 @@ export class HaSelectorAttribute extends LitElement { if ( !this.context || - oldContext?.filter_entity === this.context.filter_entity + !oldContext || + oldContext.filter_entity === this.context.filter_entity ) { return; }