diff --git a/src/common/const.ts b/src/common/const.ts index 4b4f8e6225..2b89dbb81d 100644 --- a/src/common/const.ts +++ b/src/common/const.ts @@ -138,6 +138,9 @@ export const DOMAINS_TOGGLE = new Set([ "humidifier", ]); +/** Domains that have a dynamic entity image / picture. */ +export const DOMAINS_WITH_DYNAMIC_PICTURE = new Set(["camera", "media_player"]); + /** Temperature units. */ export const UNIT_C = "°C"; export const UNIT_F = "°F"; diff --git a/src/components/entity/state-badge.ts b/src/components/entity/state-badge.ts index 737134271e..4711bf4dfc 100644 --- a/src/components/entity/state-badge.ts +++ b/src/components/entity/state-badge.ts @@ -37,7 +37,8 @@ export class StateBadge extends LitElement { protected render(): TemplateResult { const stateObj = this.stateObj; - if (!stateObj) { + // We either need a `stateObj` or one override + if (!stateObj && !this.overrideIcon && !this.overrideImage) { return html`