We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e755e24 commit 057a395Copy full SHA for 057a395
1 file changed
src/main.js
@@ -293,7 +293,7 @@ class MiniGraphCard extends LitElement {
293
style=${entityConfig.state_adaptive_color ? `color: ${this.computeColor(state, id)};` : ''}>
294
${entityConfig.show_indicator ? this.renderIndicator(state, id) : ''}
295
<span class="state__value ellipsis">
296
- ${this.computeState(isPrimary && tooltipValue || state)}
+ ${this.computeState((isPrimary && tooltipValue !== undefined) ? tooltipValue : state)}
297
</span>
298
<span class="state__uom ellipsis">
299
${this.computeUom(isPrimary && entity || id)}
0 commit comments