Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncio.exceptions.TimeoutError during zeroconf search needs to be re-raised as AccessoryNotFoundError #287

Open
bdraco opened this issue Apr 4, 2023 · 0 comments

Comments

@bdraco
Copy link
Collaborator

bdraco commented Apr 4, 2023

Mar 29 23:47:24 homeassistant homeassistant[463]: 2023-03-29 13:47:24.465 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Mar 29 23:47:24 homeassistant homeassistant[463]: Traceback (most recent call last):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/aiohomekit/zeroconf.py", line 312, in async_find
Mar 29 23:47:24 homeassistant homeassistant[463]:     if discovery := await waiter:
Mar 29 23:47:24 homeassistant homeassistant[463]: asyncio.exceptions.CancelledError
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: During handling of the above exception, another exception occurred:
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: Traceback (most recent call last):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/aiohomekit/zeroconf.py", line 311, in async_find
Mar 29 23:47:24 homeassistant homeassistant[463]:     async with async_timeout.timeout(timeout):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
Mar 29 23:47:24 homeassistant homeassistant[463]:     self._do_exit(exc_type)
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
Mar 29 23:47:24 homeassistant homeassistant[463]:     raise asyncio.TimeoutError
Mar 29 23:47:24 homeassistant homeassistant[463]: asyncio.exceptions.TimeoutError
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: During handling of the above exception, another exception occurred:
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: Traceback (most recent call last):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/aiohomekit/zeroconf.py", line 315, in async_find
Mar 29 23:47:24 homeassistant homeassistant[463]:     raise AccessoryNotFoundError(
Mar 29 23:47:24 homeassistant homeassistant[463]: aiohomekit.exceptions.AccessoryNotFoundError: Accessory with device id 8d:cf:d8:6b:30:55 not found
Mar 29 23:47:24 homeassistant homeassistant[463]: 2023-03-29 13:47:24.472 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Mar 29 23:47:24 homeassistant homeassistant[463]: Traceback (most recent call last):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/aiohomekit/zeroconf.py", line 312, in async_find
Mar 29 23:47:24 homeassistant homeassistant[463]:     if discovery := await waiter:
Mar 29 23:47:24 homeassistant homeassistant[463]: asyncio.exceptions.CancelledError
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: During handling of the above exception, another exception occurred:
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: Traceback (most recent call last):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/aiohomekit/zeroconf.py", line 311, in async_find
Mar 29 23:47:24 homeassistant homeassistant[463]:     async with async_timeout.timeout(timeout):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
Mar 29 23:47:24 homeassistant homeassistant[463]:     self._do_exit(exc_type)
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
Mar 29 23:47:24 homeassistant homeassistant[463]:     raise asyncio.TimeoutError
Mar 29 23:47:24 homeassistant homeassistant[463]: asyncio.exceptions.TimeoutError
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: During handling of the above exception, another exception occurred:
Mar 29 23:47:24 homeassistant homeassistant[463]: 
Mar 29 23:47:24 homeassistant homeassistant[463]: Traceback (most recent call last):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/local/lib/python3.10/site-packages/aiohomekit/zeroconf.py", line 315, in async_find
Mar 29 23:47:24 homeassistant homeassistant[463]:     raise AccessoryNotFoundError(
Mar 29 23:47:24 homeassistant homeassistant[463]: aiohomekit.exceptions.AccessoryNotFoundError: Accessory with device id 8d:cf:d8:6b:30:55 not found
Mar 29 23:47:24 homeassistant homeassistant[463]: 2023-03-29 13:47:24.474 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Mar 29 23:47:24 homeassistant homeassistant[463]: Traceback (most recent call last):
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 95, in _async_start
Mar 29 23:47:24 homeassistant homeassistant[463]:     await gather_with_concurrency(
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/src/homeassistant/homeassistant/util/async_.py", line 180, in gather_with_concurrency
Mar 29 23:47:24 homeassistant homeassistant[463]:     return await gather(
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/src/homeassistant/homeassistant/util/async_.py", line 178, in sem_task
Mar 29 23:47:24 homeassistant homeassistant[463]:     return await task
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 840, in async_init
Mar 29 23:47:24 homeassistant homeassistant[463]:     flow, result = await task
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 868, in _async_init
Mar 29 23:47:24 homeassistant homeassistant[463]:     result = await self._async_handle_step(flow, flow.init_step, data)
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
Mar 29 23:47:24 homeassistant homeassistant[463]:     result: FlowResult = await getattr(flow, method)(user_input)
Mar 29 23:47:24 homeassistant homeassistant[463]:   File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 405, in async_step_bluetooth
Mar 29 23:47:24 homeassistant homeassistant[463]:     self.name = discovery.description.name
Mar 29 23:47:24 homeassistant homeassistant[463]: AttributeError: 'NoneType' object has no attribute 'description'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant