Home Assistant Unofficial Reference
2024.12.1
models.py
Go to the documentation of this file.
1
"""Models helper class for the network integration."""
2
3
from
__future__
import
annotations
4
5
from
typing
import
TypedDict
6
7
8
class
IPv6ConfiguredAddress
(TypedDict):
9
"""Represent an IPv6 address."""
10
11
address: str
12
flowinfo: int
13
scope_id: int
14
network_prefix: int
15
16
17
class
IPv4ConfiguredAddress
(TypedDict):
18
"""Represent an IPv4 address."""
19
20
address: str
21
network_prefix: int
22
23
24
class
Adapter
(TypedDict):
25
"""Configured network adapters."""
26
27
name: str
28
index: int |
None
29
enabled: bool
30
auto: bool
31
default: bool
32
ipv6: list[IPv6ConfiguredAddress]
33
ipv4: list[IPv4ConfiguredAddress]
homeassistant.components.network.models.Adapter
Definition:
models.py:24
homeassistant.components.network.models.IPv4ConfiguredAddress
Definition:
models.py:17
homeassistant.components.network.models.IPv6ConfiguredAddress
Definition:
models.py:8
core
homeassistant
components
network
models.py
Generated by
1.9.1