address is deprecated in favor of addresses (#24302)
This commit is contained in:
parent
df1da7554c
commit
fbfaa41cb0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue