mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
🔧 properly override entity picture with icon (#2902)
This commit is contained in:
parent
ec04c80413
commit
262537c287
@ -53,7 +53,7 @@ class StateBadge extends LitElement {
|
||||
};
|
||||
if (stateObj) {
|
||||
// hide icon if we have entity picture
|
||||
if (stateObj.attributes.entity_picture) {
|
||||
if (stateObj.attributes.entity_picture && !this.overrideIcon) {
|
||||
hostStyle.backgroundImage =
|
||||
"url(" + stateObj.attributes.entity_picture + ")";
|
||||
iconStyle.display = "none";
|
||||
|
Loading…
x
Reference in New Issue
Block a user