Ensure homekit_controller traps exceptions from find_ip_by_device_id (#40030)

This commit is contained in:
J. Nick Koston 2020-09-13 14:55:49 -05:00 committed by Paulus Schoutsen
parent a971b92899
commit 30b8565548

View File

@ -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: