Restore proper state badge image behavior (#10369)

This commit is contained in:
Philip Allgaier 2021-10-22 14:09:23 +02:00 committed by GitHub
parent 95c6adc739
commit bbbeafcc92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ export class HaStateLabelBadge extends LitElement {
const domain = computeStateDomain(entityState);
const showIcon = this.icon || this._computeShowIcon(domain, entityState);
const image = showIcon
const image = this.icon
? ""
: this.image
? this.image