From 30b856554879e0b23a915c39bc4c0c5e93ecda9d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 13 Sep 2020 14:55:49 -0500 Subject: [PATCH] Ensure homekit_controller traps exceptions from find_ip_by_device_id (#40030) --- homeassistant/components/homekit_controller/config_flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/homekit_controller/config_flow.py b/homeassistant/components/homekit_controller/config_flow.py index 7e98fc40910..9ca247382c7 100644 --- a/homeassistant/components/homekit_controller/config_flow.py +++ b/homeassistant/components/homekit_controller/config_flow.py @@ -304,9 +304,8 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow): # Its possible that the first try may have been busy so # we always check to see if self.finish_paring has been # set. - discovery = await self.controller.find_ip_by_device_id(self.hkid) - try: + discovery = await self.controller.find_ip_by_device_id(self.hkid) self.finish_pairing = await discovery.start_pairing(self.hkid) except aiohomekit.BusyError: