Downgrade logger message about homekit id missing (#49079)

This can happen if the TXT record is received after the PTR record and
should not generate a warning since it will get processed later
This commit is contained in:
J. Nick Koston 2021-04-11 10:36:26 -10:00 committed by GitHub
parent eb2949a20f
commit b86bba246a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,8 +209,11 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow):
}
if "id" not in properties:
_LOGGER.warning(
"HomeKit device %s: id not exposed, in violation of spec", properties
# This can happen if the TXT record is received after the PTR record
# we will wait for the next update in this case
_LOGGER.debug(
"HomeKit device %s: id not exposed; TXT record may have not yet been received",
properties,
)
return self.async_abort(reason="invalid_properties")