Files
home-assistant-core/homeassistant/components/network/models.py
T
epenetGitHubcopilot-swe-agent[bot] <[email protected]>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: frenck <[email protected]>
2026-04-30 21:14:48 +02:00

32 lines
594 B
Python

"""Models helper class for the network integration."""
from typing import TypedDict
class IPv6ConfiguredAddress(TypedDict):
"""Represent an IPv6 address."""
address: str
flowinfo: int
scope_id: int
network_prefix: int
class IPv4ConfiguredAddress(TypedDict):
"""Represent an IPv4 address."""
address: str
network_prefix: int
class Adapter(TypedDict):
"""Configured network adapters."""
name: str
index: int | None
enabled: bool
auto: bool
default: bool
ipv6: list[IPv6ConfiguredAddress]
ipv4: list[IPv4ConfiguredAddress]