Skip to content

Commit 73d1ae9

Browse files
committed
icon background regression - thanks @Sturby!
1 parent 69fe507 commit 73d1ae9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cards/components/room-state-icon/room-state-icon.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ export class RoomStateIcon extends HassUpdateMixin(LitElement) {
160160
this._hideIconContent = this.isMainRoomEntity
161161
? this._config?.background?.options?.includes('hide_icon_only') || false
162162
: false;
163-
this.image = false;
163+
164+
// regression fix for #383 - in future handle the image logic internally
165+
// but this resets the image to false when the entity_picture is removed for #333 still
166+
this.image =
167+
this._config?.background?.options?.includes('icon_background') ?? false;
164168
}
165169

166170
this._hass = hass;

0 commit comments

Comments
 (0)