1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

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 GitHub
parent c32f698671
commit 36ce8ba79e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: