slipx06 / sunsynk-power-flow-card

⚡A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.
MIT License
178 stars 52 forks source link

Values not being rounded #27

Closed chickenbeef closed 1 year ago

chickenbeef commented 1 year ago

Running v1.5.3 and values are randomly not being rounded. Example:

image

Another example: https://mybroadband.co.za/forum/threads/sunsynk-home-assistant.1183858/post-31279011

For these, I see that there's no rounding (.toFixed) here:

https://github.com/slipx06/sunsynk-power-flow-card/blob/f1b58e2816bc0b69088ca84945b3eed29b88031a/dist/sunsynk-power-flow-card.js#L160-L196

Could that be the issue?

slipx06 commented 1 year ago

This should be fixed in 1.5.4. Thanks