Skip to content

Commit

Permalink
fix: allow zero tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
akloeckner committed Dec 3, 2022
1 parent c50ac9d commit d2fcfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class MiniGraphCard extends LitElement {
style=${entityConfig.state_adaptive_color ? `color: ${this.computeColor(state, id)};` : ''}>
${entityConfig.show_indicator ? this.renderIndicator(state, id) : ''}
<span class="state__value ellipsis">
${this.computeState(isPrimary && tooltipValue || state)}
${this.computeState((isPrimary && tooltipValue !== undefined) ? tooltipValue : state)}
</span>
<span class="state__uom ellipsis">
${this.computeUom(isPrimary && entity || id)}
Expand Down

0 comments on commit d2fcfee

Please sign in to comment.