Skip to content

Bump homeassistant to 2026.2.0 for pycares 5 compatibility - #504

Merged
GuyKh merged 1 commit into
mainfrom
renovate/pycares-5.x
Aug 10, 2026
Merged

Bump homeassistant to 2026.2.0 for pycares 5 compatibility#504
GuyKh merged 1 commit into
mainfrom
renovate/pycares-5.x

Conversation

@renovate

@renovate renovate Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What

Renovate bumped pycares from >=4.9.0,<5.0.0 to >=5.0.1,<5.1.0. pycares 5.0 removed the ares_query_* result classes that aiodns < 4.0 references at import time — and since aiohttp's DNS resolver only catches ImportError, the AttributeError escapes and any import aiohttp crashes. Every test imports homeassistant → aiohttp, so the whole suite errored at collection.

The incompatibility is not fixable repo-side on the old HA: homeassistant==2025.10.2 exact-pins aiodns==3.5.0. The fix is to bump the dev/CI Home Assistant to 2026.2.0, the first release that pins aiodns>=4.0.0 (aiodns 4.x drops the annotation entirely).

Changes

  • requirements.txt:
    • homeassistant==2025.10.2homeassistant==2026.2.0 (pins aiodns==4.0.0, aiohttp==3.13.3)
    • pycares>=4.9.0,<5.0.0pycares>=5.0.1,<5.1.0 (the renovate bump, now viable)
    • Updated the explanatory comment

Validation

  • Full test suite: 64 passed with homeassistant 2026.2.0 + aiodns 4.0.0 + pycares 5.0.1 (CI-equivalent fresh venv, Python 3.13)
  • ruff check . clean; scripts/typecheck (mypy) clean — 12 source files

Notes

  • This is a dev/CI-only dependency pin. hacs.json / AGENTS.md still declare 2025.10.2 as the minimum supported HA for end users — unchanged.
  • Supersedes the earlier revert + renovate-disable approach (history was force-pushed).
  • HA is deliberately renovate-disabled in renovate.json, so this bump is manual — as expected.
  • HA 2026.6.0+ pin aiodns==4.0.4 and could be a follow-up bump.

@renovate
renovate Bot force-pushed the renovate/pycares-5.x branch from 3d19f59 to 55a3b27 Compare August 6, 2026 15:12
@renovate

renovate Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@GuyKh GuyKh changed the title Update dependency pycares to v5 Revert pycares to 4.x and disable renovate updates Aug 9, 2026
pycares 5.0 removed the ares_query_* result classes that aiodns < 4.0 references at import time, so `import aiohttp` crashes (homeassistant's DNS resolver only catches ImportError). homeassistant 2026.2.0 is the first release pinning aiodns >= 4.0.0, which drops that annotation. Verified: full test suite passes (64 tests) with homeassistant 2026.2.0, aiodns 4.0.0, pycares 5.0.1.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@GuyKh
GuyKh force-pushed the renovate/pycares-5.x branch from f4d440b to 13b6398 Compare August 10, 2026 05:52
@GuyKh GuyKh changed the title Revert pycares to 4.x and disable renovate updates Bump homeassistant to 2026.2.0 for pycares 5 compatibility Aug 10, 2026
@GuyKh
GuyKh merged commit c704365 into main Aug 10, 2026
9 checks passed
@GuyKh
GuyKh deleted the renovate/pycares-5.x branch August 10, 2026 06:13
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