Bump homeassistant to 2026.2.0 for pycares 5 compatibility - #504
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/pycares-5.x
branch
from
August 6, 2026 15:12
3d19f59 to
55a3b27
Compare
Contributor
Author
Edited/Blocked NotificationRenovate 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. |
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
force-pushed
the
renovate/pycares-5.x
branch
from
August 10, 2026 05:52
f4d440b to
13b6398
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Renovate bumped
pycaresfrom>=4.9.0,<5.0.0to>=5.0.1,<5.1.0. pycares 5.0 removed theares_query_*result classes thataiodns< 4.0 references at import time — and sinceaiohttp's DNS resolver only catchesImportError, theAttributeErrorescapes and anyimport aiohttpcrashes. 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.2exact-pinsaiodns==3.5.0. The fix is to bump the dev/CI Home Assistant to 2026.2.0, the first release that pinsaiodns>=4.0.0(aiodns 4.x drops the annotation entirely).Changes
requirements.txt:homeassistant==2025.10.2→homeassistant==2026.2.0(pinsaiodns==4.0.0,aiohttp==3.13.3)pycares>=4.9.0,<5.0.0→pycares>=5.0.1,<5.1.0(the renovate bump, now viable)Validation
ruff check .clean;scripts/typecheck(mypy) clean — 12 source filesNotes
hacs.json/AGENTS.mdstill declare 2025.10.2 as the minimum supported HA for end users — unchanged.renovate.json, so this bump is manual — as expected.aiodns==4.0.4and could be a follow-up bump.