Fix discover cli tool when address is missing from mdns (#758)

This commit is contained in:
J. Nick Koston 2023-11-27 08:21:51 -06:00 committed by GitHub
parent 86726e9079
commit b73270c0bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def async_service_update(
version = decode_bytes_or_none(properties.get(b"version"))
platform = decode_bytes_or_none(properties.get(b"platform"))
board = decode_bytes_or_none(properties.get(b"board"))
address = None
address = ""
if addresses := info.ip_addresses_by_version(IPVersion.V4Only):
address = str(addresses[0])