Open
Description
(Following on from the discussion at esphome/esphome#8536 (comment))
>>> import zeroconf
>>> zc = zeroconf.Zeroconf()
>>> info = zeroconf.AddressResolver("landing-blind-1.local.")
>>> info.request(zc, 10000)
True
>>> print(info.parsed_scoped_addresses())
['172.31.31.173', '2001:8b0:10b:5:f2f5:bdff:fe5f:556c', 'fe80::f2f5:bdff:fe4f:556c']
>>>
But parsed_scoped_addresses is explicitly documented to return properly scoped link-local addresses "qualified with %<interface_index> when available".
zeroconf 0.146.3 on Ubuntu 24.04.
Metadata
Metadata
Assignees
Labels
No labels