diff --git a/src/components/entity/state-badge.ts b/src/components/entity/state-badge.ts index 516a5ed814..d000865d5d 100644 --- a/src/components/entity/state-badge.ts +++ b/src/components/entity/state-badge.ts @@ -35,11 +35,15 @@ class StateBadge extends LitElement { return html``; } + const domain = computeStateDomain(stateObj); + return html` 10) { iconStyle.color = `hsl(${hue}, 100%, ${100 - sat / 2}%)`; } } - if (stateObj.attributes.brightness) { + if (stateObj.attributes.brightness && this.stateColor !== false) { const brightness = stateObj.attributes.brightness; if (typeof brightness !== "number") { const errorMessage = `Type error: state-badge expected number, but type of ${