flixlix / power-flow-card-plus

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

fix: 🐛 secondary info indexes on individual elements #584

Closed MrPrisoner closed 2 months ago

MrPrisoner commented 2 months ago

Fix secondary info indexes on individual elements. Fix Power Outage table on readme

MrPrisoner commented 2 months ago

@flixlix Hey bud, I fixed an issue where individual elements with display_zero: false will display the wrong element's secondary info because of hard-coded indexes.

Not sure if I should be making PR to main or a release branch. You're also welcome to cherry pick if you want to pull it in.

flixlix commented 2 months ago

Hey @MrPrisoner,

thank you very much for this PR, very good find on this bug fix!

I'm fine with the readme changes, no need for an additional PR.

I'll merge this for version 0.2.2 :)