Skip to content

Retry setup after transient source fetch failures#6983

Open
PrzemyslawKlys wants to merge 1 commit into
mampfes:masterfrom
EvotecIT:fix/source-fetch-retry
Open

Retry setup after transient source fetch failures#6983
PrzemyslawKlys wants to merge 1 commit into
mampfes:masterfrom
EvotecIT:fix/source-fetch-retry

Conversation

@PrzemyslawKlys

@PrzemyslawKlys PrzemyslawKlys commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Addresses #6981.

Summary

  • make SourceShell.fetch() report success without discarding cached entries or refresh time on failure
  • let Home Assistant retry a config entry when its first source fetch fails instead of loading sensors as unknown
  • advance fetch-interval bookkeeping only after successful UI and YAML fetches, while still attempting every configured YAML source

This targets the stable master branch and is intentionally independent of the v3 source architecture.

Validation

  • python -m pytest -q — 38 passed
  • Ruff, format, codespell, bandit, and mypy hooks passed

CI dependency

The current base workflow installs unsupported Home Assistant 2023.7.3 under Python 3.10, so its validation job fails while importing DeviceInfo before these tests can run. #6987 aligns the base validation environment with the advertised Home Assistant 2023.12 minimum.

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