JonahKr / power-distribution-card

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

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

Closed Oxgit closed 10 months ago

Oxgit commented 11 months 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 11 months 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 11 months ago

I'm providing it myself - that's true

image

JonahKr commented 10 months ago

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

Oxgit commented 10 months ago

Thank you