mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Bump ifaddr to 0.2.0 (#93377)
This commit is contained in:
parent
bb8dfc9470
commit
28fa6f541f
@ -7,5 +7,5 @@
|
|||||||
"integration_type": "system",
|
"integration_type": "system",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"quality_scale": "internal",
|
"quality_scale": "internal",
|
||||||
"requirements": ["ifaddr==0.1.7"]
|
"requirements": ["ifaddr==0.2.0"]
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ class Adapter(TypedDict):
|
|||||||
"""Configured network adapters."""
|
"""Configured network adapters."""
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
index: int
|
index: int | None
|
||||||
enabled: bool
|
enabled: bool
|
||||||
auto: bool
|
auto: bool
|
||||||
default: bool
|
default: bool
|
||||||
|
@ -97,6 +97,7 @@ def _ifaddr_adapter_to_ha(
|
|||||||
ip_addr = ip_address(ip_config.ip[0])
|
ip_addr = ip_address(ip_config.ip[0])
|
||||||
ip_v6s.append(_ip_v6_from_adapter(ip_config))
|
ip_v6s.append(_ip_v6_from_adapter(ip_config))
|
||||||
else:
|
else:
|
||||||
|
assert not isinstance(ip_config.ip, tuple)
|
||||||
ip_addr = ip_address(ip_config.ip)
|
ip_addr = ip_address(ip_config.ip)
|
||||||
ip_v4s.append(_ip_v4_from_adapter(ip_config))
|
ip_v4s.append(_ip_v4_from_adapter(ip_config))
|
||||||
|
|
||||||
@ -117,6 +118,7 @@ def _ifaddr_adapter_to_ha(
|
|||||||
|
|
||||||
|
|
||||||
def _ip_v6_from_adapter(ip_config: ifaddr.IP) -> IPv6ConfiguredAddress:
|
def _ip_v6_from_adapter(ip_config: ifaddr.IP) -> IPv6ConfiguredAddress:
|
||||||
|
assert isinstance(ip_config.ip, tuple)
|
||||||
return {
|
return {
|
||||||
"address": ip_config.ip[0],
|
"address": ip_config.ip[0],
|
||||||
"flowinfo": ip_config.ip[1],
|
"flowinfo": ip_config.ip[1],
|
||||||
@ -126,6 +128,7 @@ def _ip_v6_from_adapter(ip_config: ifaddr.IP) -> IPv6ConfiguredAddress:
|
|||||||
|
|
||||||
|
|
||||||
def _ip_v4_from_adapter(ip_config: ifaddr.IP) -> IPv4ConfiguredAddress:
|
def _ip_v4_from_adapter(ip_config: ifaddr.IP) -> IPv4ConfiguredAddress:
|
||||||
|
assert not isinstance(ip_config.ip, tuple)
|
||||||
return {
|
return {
|
||||||
"address": ip_config.ip,
|
"address": ip_config.ip,
|
||||||
"network_prefix": ip_config.network_prefix,
|
"network_prefix": ip_config.network_prefix,
|
||||||
|
@ -28,7 +28,7 @@ home-assistant-bluetooth==1.10.0
|
|||||||
home-assistant-frontend==20230503.3
|
home-assistant-frontend==20230503.3
|
||||||
home-assistant-intents==2023.4.26
|
home-assistant-intents==2023.4.26
|
||||||
httpx==0.24.0
|
httpx==0.24.0
|
||||||
ifaddr==0.1.7
|
ifaddr==0.2.0
|
||||||
janus==1.0.0
|
janus==1.0.0
|
||||||
jinja2==3.1.2
|
jinja2==3.1.2
|
||||||
lru-dict==1.1.8
|
lru-dict==1.1.8
|
||||||
|
@ -36,7 +36,7 @@ dependencies = [
|
|||||||
# httpcore, anyio, and h11 in gen_requirements_all
|
# httpcore, anyio, and h11 in gen_requirements_all
|
||||||
"httpx==0.24.0",
|
"httpx==0.24.0",
|
||||||
"home-assistant-bluetooth==1.10.0",
|
"home-assistant-bluetooth==1.10.0",
|
||||||
"ifaddr==0.1.7",
|
"ifaddr==0.2.0",
|
||||||
"jinja2==3.1.2",
|
"jinja2==3.1.2",
|
||||||
"lru-dict==1.1.8",
|
"lru-dict==1.1.8",
|
||||||
"PyJWT==2.7.0",
|
"PyJWT==2.7.0",
|
||||||
|
@ -12,7 +12,7 @@ certifi>=2021.5.30
|
|||||||
ciso8601==2.3.0
|
ciso8601==2.3.0
|
||||||
httpx==0.24.0
|
httpx==0.24.0
|
||||||
home-assistant-bluetooth==1.10.0
|
home-assistant-bluetooth==1.10.0
|
||||||
ifaddr==0.1.7
|
ifaddr==0.2.0
|
||||||
jinja2==3.1.2
|
jinja2==3.1.2
|
||||||
lru-dict==1.1.8
|
lru-dict==1.1.8
|
||||||
PyJWT==2.7.0
|
PyJWT==2.7.0
|
||||||
|
@ -965,7 +965,7 @@ ical==4.5.1
|
|||||||
icmplib==3.0
|
icmplib==3.0
|
||||||
|
|
||||||
# homeassistant.components.network
|
# homeassistant.components.network
|
||||||
ifaddr==0.1.7
|
ifaddr==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.iglo
|
# homeassistant.components.iglo
|
||||||
iglo==1.2.7
|
iglo==1.2.7
|
||||||
|
@ -745,7 +745,7 @@ ical==4.5.1
|
|||||||
icmplib==3.0
|
icmplib==3.0
|
||||||
|
|
||||||
# homeassistant.components.network
|
# homeassistant.components.network
|
||||||
ifaddr==0.1.7
|
ifaddr==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.influxdb
|
# homeassistant.components.influxdb
|
||||||
influxdb-client==1.24.0
|
influxdb-client==1.24.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user