mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
address is deprecated in favor of addresses (#24302)
This commit is contained in:
parent
df1da7554c
commit
fbfaa41cb0
@ -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)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user