flixlix / power-flow-card-plus

A power distribution card inspired by the official Energy Distribution card for Home Assistant
579 stars 72 forks source link

[BUG] Fossil Fuel Dots are shown when Lines are transparent, though the value is zero #581

Open Matze-aaa opened 5 months ago

Matze-aaa commented 5 months ago

Describe the bug Fossil Fuel Dots are shown when Lines are transparent, though the value is zero

To Reproduce Steps to reproduce the behavior: Advanced Options - Display zero Lines - Transparency

Expected behavior Fossil Fuel Dots are not shown when the value of the used entity is zero.

Screenshots image when zero Lines are "hidden", then the behavior is ok: image

Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.

flixlix commented 5 months ago

fixed in #588

Matze-aaa commented 5 months ago

sorry, no it isn't. see https://github.com/flixlix/power-flow-card-plus/pull/588#issuecomment-2073353021

flixlix commented 5 months ago

Oh yeah, forgot to compare with display zero tolerance, was only comparing with 0 😅

flixlix commented 5 months ago

I'll fix it in the next version

Matze-aaa commented 5 months ago

I guess, that there is something more wrong. Because when there is a little export (and for sure no import), the dots are shown, too. image