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
pull/49139/head
J. Nick Koston 2021-04-11 10:36:26 -10:00 committed by Paulus Schoutsen
parent 4eb794ae84
commit bf28268732
1 changed files with 5 additions and 2 deletions

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")