Condition testing display fix (#21606)

This commit is contained in:
Bram Kragten 2024-08-06 16:33:54 +02:00 committed by GitHub
parent 7d218c89ae
commit b23aacef84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
</div>
</ha-card>