JonahKr / power-distribution-card

A Lovelace Card for visualizing power distributions.
MIT License
219 stars 13 forks source link

If the autarky croses up 100% the bar is over the number #153

Closed Oxgit closed 1 year ago

Oxgit commented 1 year ago

If the autarky croses up 100% the bar is over the number. There could be two options for solution: 1) autarky limited to 100% cap 2) the bar is displayed under the number to show the value

JonahKr commented 1 year ago

Hey there 👋 Could you maybe provide a picture of this occuring? This actually shouldn't be possible, unless you are providing the autarky value yourself, as seen here: https://github.com/JonahKr/power-distribution-card/blob/6faf5f4ac3ad82106b43267347e45c4fbbdcb043/src/power-distribution-card.ts#L484-L487

Thanks in advance!

Oxgit commented 1 year ago

I'm providing it myself - that's true

image

JonahKr commented 1 year ago

Fixed with https://github.com/JonahKr/power-distribution-card/releases/tag/v2.5.11

Oxgit commented 1 year ago

Thank you