Skip to content

Fix Home Assistant 2026.8 discovery scheduling - #2

Merged
dr-apple merged 1 commit into
mainfrom
codex/ha-2026.8-thread-safety
Aug 8, 2026
Merged

Fix Home Assistant 2026.8 discovery scheduling#2
dr-apple merged 1 commit into
mainfrom
codex/ha-2026.8-thread-safety

Conversation

@dr-apple

@dr-apple dr-apple commented Aug 8, 2026

Copy link
Copy Markdown
Owner

What changed

  • schedule delayed discovery through a callback-marked Home Assistant job
  • add regression coverage for all delayed retry callbacks
  • bump the integration to 1.0.2

Why

Home Assistant 2026.8 executed the unmarked lambda in a worker thread. It then called hass.async_create_task outside the event loop, causing runtime errors and skipped discovery scans.

Validation

  • Ruff format/check
  • 9 pytest tests, including delayed callback scheduling coverage

@dr-apple
dr-apple merged commit 05aefc2 into main Aug 8, 2026
2 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