Skip to content

Commit 057a395

Browse files
committed
fix: allow zero tooltip
fixes kalkih#805
1 parent e755e24 commit 057a395

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class MiniGraphCard extends LitElement {
293293
style=${entityConfig.state_adaptive_color ? `color: ${this.computeColor(state, id)};` : ''}>
294294
${entityConfig.show_indicator ? this.renderIndicator(state, id) : ''}
295295
<span class="state__value ellipsis">
296-
${this.computeState(isPrimary && tooltipValue || state)}
296+
${this.computeState((isPrimary && tooltipValue !== undefined) ? tooltipValue : state)}
297297
</span>
298298
<span class="state__uom ellipsis">
299299
${this.computeUom(isPrimary && entity || id)}

0 commit comments

Comments
 (0)