Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.zeroconf.ZeroconfServiceInfo Class Reference
Inheritance diagram for homeassistant.components.zeroconf.ZeroconfServiceInfo:
[legend]
Collaboration diagram for homeassistant.components.zeroconf.ZeroconfServiceInfo:
[legend]

Public Member Functions

list[str] addresses (self)
 
str host (self)
 

Detailed Description

Prepared info from mDNS entries.

The ip_address is the most recently updated address
that is not a link local or unspecified address.

The ip_addresses are all addresses in order of most
recently updated to least recently updated.

The host is the string representation of the ip_address.

The addresses are the string representations of the
ip_addresses.

It is recommended to use the ip_address to determine
the address to connect to as it will be the most
recently updated address that is not a link local
or unspecified address.

Definition at line 106 of file __init__.py.

Member Function Documentation

◆ addresses()

list[str] homeassistant.components.zeroconf.ZeroconfServiceInfo.addresses (   self)
Return the addresses.

Definition at line 140 of file __init__.py.

◆ host()

str homeassistant.components.zeroconf.ZeroconfServiceInfo.host (   self)
Return the host.

Definition at line 135 of file __init__.py.


The documentation for this class was generated from the following file: