kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.96k stars 232 forks source link

fix: drop out-of-bound coords in reducer #881

Closed akloeckner closed 1 year ago

akloeckner commented 1 year ago

The fix from #251 introduced a logic that

  1. allocated all "too-old" coords to the first group coords[0]
  2. deleted all but one entries from that first group.

This caused aggregators to stop calculating proper results for that first group.

The proposed new logic drops out-of-bounds entries already in the reducer. This allows the first group to have multiple entries. Aggregate functions should now work again.

fixed #869

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 0.12.0-dev.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 0.12.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: