mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
address is deprecated in favor of addresses (#24302)
This commit is contained in:
parent
1096fe3d87
commit
3b60081e2a
@ -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