fix: allow zero tooltip

fixes #805
This commit is contained in:
dev-docker
2022-12-03 21:34:48 +01:00
committed by akloeckner
parent e755e24efe
commit 057a395ecb

View File

@@ -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)}