Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using the AsyncResolver with aiohttp
Browse files Browse the repository at this point in the history
This avoids creating executor jobs to do DNS resolution

AsyncResolver was not usable before aio-libs/aiohttp#8270
because it did not fallback to fallback to A records and only returned AAAA records
in most cases when IPv6 was available

This is a backport of aio-libs/aiohttp#8270
bdraco committed Mar 31, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7102d99 commit 7227ff8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/helpers/backports/aiohttp_resolver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""Backport of aiohttp's AsyncResolver for Home Assistant."""
"""Backport of aiohttp's AsyncResolver for Home Assistant.
This is a backport of the AsyncResolver class from aiohttp 3.10.
"""

from __future__ import annotations

0 comments on commit 7227ff8

Please sign in to comment.