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 fa9c8d5481..5ab2ee2613 100644 --- a/src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts +++ b/src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts @@ -235,9 +235,11 @@ export class HaCardConditionEditor extends LitElement { ? this.hass.localize( "ui.panel.lovelace.editor.condition-editor.testing_pass" ) - : this.hass.localize( - "ui.panel.lovelace.editor.condition-editor.testing_error" - ) + : this._testingResult === false + ? this.hass.localize( + "ui.panel.lovelace.editor.condition-editor.testing_error" + ) + : nothing }