address is deprecated in favor of addresses (#24302)
parent
df1da7554c
commit
fbfaa41cb0
|
@ -127,7 +127,7 @@ def info_from_service(service):
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
_LOGGER.warning("Unicode decode error on %s: %s", key, value)
|
_LOGGER.warning("Unicode decode error on %s: %s", key, value)
|
||||||
|
|
||||||
address = service.address or service.address6
|
address = service.addresses[0]
|
||||||
|
|
||||||
info = {
|
info = {
|
||||||
ATTR_HOST: str(ipaddress.ip_address(address)),
|
ATTR_HOST: str(ipaddress.ip_address(address)),
|
||||||
|
|
Loading…
Reference in New Issue