fix: legend indicators respect entity attribute configuration (#1115)

This commit is contained in:
Erik J. Olson
2024-07-24 15:21:33 -07:00
committed by GitHub
parent c0ad333ee9
commit 5fe01d15a7

View File

@@ -345,7 +345,7 @@ class MiniGraphCard extends LitElement {
@click=${e => this.handlePopup(e, this.entity[entity.index])}
@mouseenter=${() => this.setTooltip(entity.index, -1, this.getEntityState(entity.index), 'Current')}
@mouseleave=${() => (this.tooltip = {})}>
${this.renderIndicator(this.entity[entity.index].state, entity.index)}
${this.renderIndicator(this.getEntityState(entity.index), entity.index)}
<span class="ellipsis">${this.computeName(entity.index)}</span>
</div>
`)}