Add support for Happy Eyeballs to homekit_controller (#105454)

pull/105592/head
J. Nick Koston 2023-12-12 07:54:33 -10:00 committed by GitHub
parent 64c3cfca17
commit ec1cde77f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -257,6 +257,11 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
)
updated_ip_port = {
"AccessoryIP": discovery_info.host,
"AccessoryIPs": [
str(ip_addr)
for ip_addr in discovery_info.ip_addresses
if not ip_addr.is_link_local and not ip_addr.is_unspecified
],
"AccessoryPort": discovery_info.port,
}
# If the device is already paired and known to us we should monitor c#