Ensure homekit_controller traps exceptions from find_ip_by_device_id (#40030)

pull/39419/head^2
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
1 changed files with 1 additions and 2 deletions

View File

@ -304,9 +304,8 @@ class HomekitControllerFlowHandler(config_entries.ConfigFlow):
# Its possible that the first try may have been busy so # Its possible that the first try may have been busy so
# we always check to see if self.finish_paring has been # we always check to see if self.finish_paring has been
# set. # set.
discovery = await self.controller.find_ip_by_device_id(self.hkid)
try: try:
discovery = await self.controller.find_ip_by_device_id(self.hkid)
self.finish_pairing = await discovery.start_pairing(self.hkid) self.finish_pairing = await discovery.start_pairing(self.hkid)
except aiohomekit.BusyError: except aiohomekit.BusyError: