Fix discover cli tool when address is missing from mdns (#758)
This commit is contained in:
parent
86726e9079
commit
b73270c0bd
|
@ -40,7 +40,7 @@ def async_service_update(
|
||||||
version = decode_bytes_or_none(properties.get(b"version"))
|
version = decode_bytes_or_none(properties.get(b"version"))
|
||||||
platform = decode_bytes_or_none(properties.get(b"platform"))
|
platform = decode_bytes_or_none(properties.get(b"platform"))
|
||||||
board = decode_bytes_or_none(properties.get(b"board"))
|
board = decode_bytes_or_none(properties.get(b"board"))
|
||||||
address = None
|
address = ""
|
||||||
if addresses := info.ip_addresses_by_version(IPVersion.V4Only):
|
if addresses := info.ip_addresses_by_version(IPVersion.V4Only):
|
||||||
address = str(addresses[0])
|
address = str(addresses[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue