Skip to content

Link-local addresses returned without scope. #1567

@dwmw2

Description

@dwmw2

(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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions