mirror of
https://github.com/kalkih/mini-graph-card.git
synced 2025-12-20 00:35:56 +01:00
fix: legend indicators respect entity attribute configuration (#1115)
This commit is contained in:
@@ -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>
|
||||
`)}
|
||||
|
||||
Reference in New Issue
Block a user