mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +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) {
|
if (stateObj) {
|
||||||
// hide icon if we have entity picture
|
// hide icon if we have entity picture
|
||||||
if (stateObj.attributes.entity_picture) {
|
if (stateObj.attributes.entity_picture && !this.overrideIcon) {
|
||||||
hostStyle.backgroundImage =
|
hostStyle.backgroundImage =
|
||||||
"url(" + stateObj.attributes.entity_picture + ")";
|
"url(" + stateObj.attributes.entity_picture + ")";
|
||||||
iconStyle.display = "none";
|
iconStyle.display = "none";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user