From 3e0c462bf6a64506f2fa9d7b7aa37a87cef6bc9c Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 23 Oct 2023 14:50:31 +0200 Subject: [PATCH] Update src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts Co-authored-by: Bram Kragten --- .../lovelace/editor/conditions/ha-card-condition-editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts b/src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts index 63f74d5c929f..a56b0c1101cd 100644 --- a/src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts +++ b/src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts @@ -40,7 +40,7 @@ export default class HaCardConditionEditor extends LitElement { protected willUpdate(changedProperties: PropertyValues): void { if (changedProperties.has("condition")) { - const validator = this._editor && this._editor.validateUIConfig; + const validator = this._editor?.validateUIConfig; if (validator) { try { validator(this.condition, this.hass);