Bump aiodns to 3.4.0 (#144511)

This commit is contained in:
J. Nick Koston 2025-05-08 15:43:45 -05:00 committed by GitHub
parent 7100481abc
commit b1392e1fc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 8 additions and 8 deletions

View File

@ -68,7 +68,7 @@ async def async_validate_hostname(
result = False result = False
with contextlib.suppress(DNSError): with contextlib.suppress(DNSError):
result = bool( result = bool(
await aiodns.DNSResolver( await aiodns.DNSResolver( # type: ignore[call-overload]
nameservers=[resolver], udp_port=port, tcp_port=port nameservers=[resolver], udp_port=port, tcp_port=port
).query(hostname, qtype) ).query(hostname, qtype)
) )

View File

@ -5,5 +5,5 @@
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/dnsip", "documentation": "https://www.home-assistant.io/integrations/dnsip",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"requirements": ["aiodns==3.3.0"] "requirements": ["aiodns==3.4.0"]
} }

View File

@ -106,7 +106,7 @@ class WanIpSensor(SensorEntity):
async def async_update(self) -> None: async def async_update(self) -> None:
"""Get the current DNS IP address for hostname.""" """Get the current DNS IP address for hostname."""
try: try:
response = await self.resolver.query(self.hostname, self.querytype) response = await self.resolver.query(self.hostname, self.querytype) # type: ignore[call-overload]
except DNSError as err: except DNSError as err:
_LOGGER.warning("Exception while resolving host: %s", err) _LOGGER.warning("Exception while resolving host: %s", err)
response = None response = None

View File

@ -2,7 +2,7 @@
aiodhcpwatcher==1.1.1 aiodhcpwatcher==1.1.1
aiodiscover==2.6.1 aiodiscover==2.6.1
aiodns==3.3.0 aiodns==3.4.0
aiohasupervisor==0.3.1 aiohasupervisor==0.3.1
aiohttp-asyncmdnsresolver==0.1.1 aiohttp-asyncmdnsresolver==0.1.1
aiohttp-fast-zlib==0.2.3 aiohttp-fast-zlib==0.2.3

View File

@ -23,7 +23,7 @@ classifiers = [
] ]
requires-python = ">=3.13.2" requires-python = ">=3.13.2"
dependencies = [ dependencies = [
"aiodns==3.3.0", "aiodns==3.4.0",
# Integrations may depend on hassio integration without listing it to # Integrations may depend on hassio integration without listing it to
# change behavior based on presence of supervisor. Deprecated with #127228 # change behavior based on presence of supervisor. Deprecated with #127228
# Lib can be removed with 2025.11 # Lib can be removed with 2025.11

2
requirements.txt generated
View File

@ -3,7 +3,7 @@
-c homeassistant/package_constraints.txt -c homeassistant/package_constraints.txt
# Home Assistant Core # Home Assistant Core
aiodns==3.3.0 aiodns==3.4.0
aiohasupervisor==0.3.1 aiohasupervisor==0.3.1
aiohttp==3.11.18 aiohttp==3.11.18
aiohttp_cors==0.7.0 aiohttp_cors==0.7.0

2
requirements_all.txt generated
View File

@ -220,7 +220,7 @@ aiodhcpwatcher==1.1.1
aiodiscover==2.6.1 aiodiscover==2.6.1
# homeassistant.components.dnsip # homeassistant.components.dnsip
aiodns==3.3.0 aiodns==3.4.0
# homeassistant.components.duke_energy # homeassistant.components.duke_energy
aiodukeenergy==0.3.0 aiodukeenergy==0.3.0

View File

@ -208,7 +208,7 @@ aiodhcpwatcher==1.1.1
aiodiscover==2.6.1 aiodiscover==2.6.1
# homeassistant.components.dnsip # homeassistant.components.dnsip
aiodns==3.3.0 aiodns==3.4.0
# homeassistant.components.duke_energy # homeassistant.components.duke_energy
aiodukeenergy==0.3.0 aiodukeenergy==0.3.0