From bf282687323b68dd56034f9bae3e79d0de3cbc42 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 11 Apr 2021 10:36:26 -1000 Subject: [PATCH] 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 --- homeassistant/components/homekit_controller/config_flow.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homekit_controller/config_flow.py b/homeassistant/components/homekit_controller/config_flow.py index fcf83918fda..4a3deee4d11 100644 --- a/homeassistant/components/homekit_controller/config_flow.py +++ b/homeassistant/components/homekit_controller/config_flow.py @@ -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")