Skip to content

Commit

Permalink
fix: always show solar value for consistency (ulic75#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulic75 authored May 2, 2022
1 parent 20405cb commit adf4d15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/power-distribution-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@ export class PowerDistributionCard extends LitElement {
>
<div class="circle">
<ha-svg-icon .path=${mdiSolarPower}></ha-svg-icon>
${solarState > 0
? html` <span class="solar">
${roundValue(solarState, 1)} kW</span
>`
: html``}
<span class="solar">
${roundValue(solarState ?? 0, 1)} kW</span
>
</div>
</div>`
: html``}
Expand Down

0 comments on commit adf4d15

Please sign in to comment.