Skip to content

feat: add next expected update diagnostic - #27

Merged
peter-mdf merged 1 commit into
ha-parcel-integrations:mainfrom
Daniel-Dietz:feat/poll-contract-upstream-qualified
Dec 3, 2026
Merged

peter-mdf merged 1 commit into
ha-parcel-integrations:mainfrom
Daniel-Dietz:feat/poll-contract-upstream-qualified

Conversation

@Daniel-Dietz

@Daniel-Dietz Daniel-Dietz commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a standalone per-config-entry diagnostic timestamp sensor, Next expected update (next_update).
  • Estimate the next automatic update from the last successful retrieval and the current coordinator interval, including dynamic and overnight intervals. Leave the existing last-success entity unchanged.
  • Return an unknown timestamp when there is no estimate or polling is suspended. The new entity exposes a boolean poll_paused to distinguish intentional suspension from missing initial evidence. Failed coordinator updates retain normal unavailable semantics.
  • Document the estimate and grace-period caveat; add the icon, strings and every existing translation, and cover normal polling, overnight intervals, pause, initial unknown and unsuccessful updates in tests.

Validation

399 passed. Changed sensor module: 99% coverage. The existing failures, where applicable, reproduce without the feature and concern deprecated device-registry lookups in the test environment; no unrelated test fixes are included.

The diff is a single conventional feature commit on upstream main. There is no manifest/version bump or CI-skip marker. Existing release automation is unchanged.

Repository-specific documentation (CLAUDE.md) has also been updated.

@Daniel-Dietz
Daniel-Dietz force-pushed the feat/poll-contract-upstream-qualified branch from 0cddf86 to 4183d34 Compare December 1, 2026 23:01
@Daniel-Dietz Daniel-Dietz changed the title Expose the account polling schedule on the last-success sensor feat: add next expected update diagnostic Dec 2, 2026
@Daniel-Dietz
Daniel-Dietz force-pushed the feat/poll-contract-upstream-qualified branch from 4183d34 to 8094124 Compare December 2, 2026 21:17
@Daniel-Dietz
Daniel-Dietz force-pushed the feat/poll-contract-upstream-qualified branch from 8094124 to cec80bd Compare December 2, 2026 22:02
@Daniel-Dietz
Daniel-Dietz marked this pull request as ready for review December 2, 2026 22:05
@parcel-suite-reviewer

Copy link
Copy Markdown

Check against the suite's written rules for cec80bd

🤖 Written automatically by Claude and it can be wrong. A maintainer reviews and decides. CI results are not repeated here.

@peter-mdf
peter-mdf merged commit 081fff7 into ha-parcel-integrations:main Dec 3, 2026
7 checks passed
peter-mdf added a commit that referenced this pull request Dec 3, 2026
The README and CLAUDE.md no longer repeat the same paragraph.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@peter-mdf

Copy link
Copy Markdown
Contributor

Thanks @Daniel-Dietz, merged. The next_update sensor does what we discussed. I shortened the README and CLAUDE.md text afterwards so the same paragraph isn't repeated. It will ship with the next release.

@peter-mdf peter-mdf mentioned this pull request Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants