Fix ha-state-badge name in picture element card (#19703)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Paul Bottein
2024-02-07 10:15:10 +01:00
committed by GitHub
parent 3c744c09f1
commit d1592bf262
4 changed files with 6 additions and 4 deletions

View File

@@ -133,9 +133,9 @@ export class HaStateLabelBadge extends LitElement {
entityState,
this._timerTimeRemaining
)}
.description=${this.showName === false
? undefined
: this.name ?? computeStateName(entityState)}
.description=${this.showName
? this.name ?? computeStateName(entityState)
: undefined}
>
${!image && showIcon
? html`<ha-state-icon