Skip to content

Commit

Permalink
Ensure homekit_controller traps exceptions from find_ip_by_device_id (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored and balloob committed Sep 13, 2020
1 parent a971b92 commit 30b8565
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions homeassistant/components/homekit_controller/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,8 @@ async def async_step_pair(self, pair_info=None):
# 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:
Expand Down

0 comments on commit 30b8565

Please sign in to comment.