We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
as_duration
1 parent 4187104 commit 5686931Copy full SHA for 5686931
src/apexcharts-card.ts
@@ -336,7 +336,9 @@ class ChartsCard extends LitElement {
336
? prettyPrintTime(this._lastState?.[index], serie.show.as_duration)
337
: this._lastState?.[index]) || NO_VALUE}</span
338
>
339
- <span id="uom">${computeUom(index, this._config, this._entities)}</span>
+ ${!serie.show.as_duration
340
+ ? html`<span id="uom">${computeUom(index, this._config, this._entities)}</span>`
341
+ : ''}
342
</div>
343
<div id="state__name">${computeName(index, this._config, this._entities)}</div>
344
0 commit comments