Skip to content

Commit

Permalink
Merge pull request #57 from molikk/SOC-99.5%-display-fix
Browse files Browse the repository at this point in the history
Fixing Battery SOC display when 99.5%
  • Loading branch information
molikk authored Aug 8, 2024
2 parents b3a80b7 + 69e3404 commit f365ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/compact/battery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class Battery {
display="${data.stateBatterySoc.isValid() ? '' : 'none'}"
fill=${data.batteryColour}
class="${config.battery.hide_soc ? 'st12' : 'st13 st8 left-align'}" >
${data.stateBatterySoc.toStr(data.stateBatterySoc.toNum(0) === 100 ? 0 : 1)}%
${data.stateBatterySoc.toStr(data.stateBatterySoc.toNum(1) === 100.0 ? 0 : 1)}%
</text>
</a>
<text id="battery_soc_184" x="331" y="358"
Expand Down

0 comments on commit f365ae9

Please sign in to comment.