address is deprecated in favor of addresses (#24302)

pull/24309/head
Robert Svensson 2019-06-04 23:14:51 +02:00 committed by Paulus Schoutsen
parent df1da7554c
commit fbfaa41cb0
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ def info_from_service(service):
except UnicodeDecodeError:
_LOGGER.warning("Unicode decode error on %s: %s", key, value)
address = service.address or service.address6
address = service.addresses[0]
info = {
ATTR_HOST: str(ipaddress.ip_address(address)),