🔧 properly override entity picture with icon (#2902)

This commit is contained in:
Ian Richardson 2019-03-11 14:10:24 -05:00 committed by Paulus Schoutsen
parent ec04c80413
commit 262537c287

View File

@ -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";