diff --git a/src/main.js b/src/main.js index 5639e674..5d14571b 100755 --- a/src/main.js +++ b/src/main.js @@ -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) : ''} - ${this.computeState(isPrimary && tooltipValue || state)} + ${this.computeState((isPrimary && tooltipValue !== undefined) ? tooltipValue : state)} ${this.computeUom(isPrimary && entity || id)}