Ensure homekit_controller traps exceptions from find_ip_by_device_id (#40030)
parent
c32f698671
commit
36ce8ba79e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue