Skip to content

fix: refresh provisional zero consumption for yesterday (v0.8.2) - #21

Merged
papou-github merged 5 commits into
mainfrom
fix/provisional-yesterday-0.8.2
Nov 12, 2026
Merged

papou-github merged 5 commits into
mainfrom
fix/provisional-yesterday-0.8.2

Conversation

@papou-github

Copy link
Copy Markdown
Owner

Issue

On 2026-11-12 SUEZ Enhanced showed 0 L for 2026-11-11 although the SUEZ portal showed 146 L. Persistent daily cache contained volume: 0, index: null; the coordinator considered this a valid cached yesterday reading and never retried the API.

Fix

  • Treat yesterday's volume=0,index=None as provisional.
  • Continue API polling every six hours while yesterday remains provisional, including after integration reload.
  • Report yesterday consumption and cost as unknown rather than a misleading 0.
  • Accept a true zero when accompanied by a valid index; accept published positive consumption even if no index accompanies that day.
  • Filter provisional yesterday only from recent consumption/cost summaries, leaving historic Recorder writes and stored volumes unchanged.
  • Add regression tests for the incident and real zero days.

Release

  • Manifest version 0.8.2.
  • Validate CI and HA behavior before merge and release.

@papou-github
papou-github marked this pull request as ready for review November 12, 2026 17:20
@papou-github
papou-github merged commit bd90ea4 into main Nov 12, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant