mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +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;
|
this._showIcon = true;
|
||||||
|
|
||||||
if (stateObj) {
|
if (stateObj && this.overrideImage === undefined) {
|
||||||
// hide icon if we have entity picture
|
// hide icon if we have entity picture
|
||||||
if (
|
if (
|
||||||
((stateObj.attributes.entity_picture_local ||
|
(stateObj.attributes.entity_picture_local ||
|
||||||
stateObj.attributes.entity_picture) &&
|
stateObj.attributes.entity_picture) &&
|
||||||
!this.overrideIcon) ||
|
!this.overrideIcon
|
||||||
this.overrideImage
|
|
||||||
) {
|
) {
|
||||||
let imageUrl =
|
let imageUrl =
|
||||||
this.overrideImage ||
|
|
||||||
stateObj.attributes.entity_picture_local ||
|
stateObj.attributes.entity_picture_local ||
|
||||||
stateObj.attributes.entity_picture;
|
stateObj.attributes.entity_picture;
|
||||||
if (this.hass) {
|
if (this.hass) {
|
||||||
|
@ -156,6 +156,7 @@ class HaLogbook extends LitElement {
|
|||||||
: stateObj?.attributes.entity_picture_local ||
|
: stateObj?.attributes.entity_picture_local ||
|
||||||
stateObj?.attributes.entity_picture}
|
stateObj?.attributes.entity_picture}
|
||||||
.stateObj=${stateObj}
|
.stateObj=${stateObj}
|
||||||
|
.stateColor=${false}
|
||||||
></state-badge>
|
></state-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user