Fix homekit_controller discovery via zeroconf (#37725)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-07-13 17:45:05 -07:00
1 parent aabf0dab88
commit bfbb2826bc
2 files changed
+22 -2

No files matched your search

@@ -198,7 +198,7 @@ def setup(hass, config):
# If we can handle it as a HomeKit discovery, we do that here.
if service_type == HOMEKIT_TYPE:
handle_homekit(hass, info)
discovery_was_forwarded = handle_homekit(hass, info)
# Continue on here as homekit_controller
# still needs to get updates on devices
# so it can see when the 'c#' field is updated.
@@ -207,7 +207,8 @@ def setup(hass, config):
# if the device is already paired in order to avoid
# offering a second discovery for the same device
if (
HOMEKIT_PROPERTIES in info
discovery_was_forwarded
and HOMEKIT_PROPERTIES in info
and HOMEKIT_PAIRED_STATUS_FLAG in info[HOMEKIT_PROPERTIES]
):
try: