mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Fix icon overrides in logbook (#10434)
This commit is contained in:
parent
f5417fad6f
commit
8b5b21ae69
@ -80,16 +80,14 @@ export class StateBadge extends LitElement {
|
||||
|
||||
this._showIcon = true;
|
||||
|
||||
if (stateObj) {
|
||||
if (stateObj && this.overrideImage === undefined) {
|
||||
// hide icon if we have entity picture
|
||||
if (
|
||||
((stateObj.attributes.entity_picture_local ||
|
||||
(stateObj.attributes.entity_picture_local ||
|
||||
stateObj.attributes.entity_picture) &&
|
||||
!this.overrideIcon) ||
|
||||
this.overrideImage
|
||||
!this.overrideIcon
|
||||
) {
|
||||
let imageUrl =
|
||||
this.overrideImage ||
|
||||
stateObj.attributes.entity_picture_local ||
|
||||
stateObj.attributes.entity_picture;
|
||||
if (this.hass) {
|
||||
|
@ -156,6 +156,7 @@ class HaLogbook extends LitElement {
|
||||
: stateObj?.attributes.entity_picture_local ||
|
||||
stateObj?.attributes.entity_picture}
|
||||
.stateObj=${stateObj}
|
||||
.stateColor=${false}
|
||||
></state-badge>
|
||||
`
|
||||
: ""}
|
||||
|
Loading…
x
Reference in New Issue
Block a user