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

Ensure RPCCall exceptions are resolved if the call times out #330

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Jan 9, 2023

2023-01-09 20:24:54.585 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aioshelly/rpc_device/device.py", line 275, in call_rpc
return await self._wsrpc.call(method, params)
File "/usr/local/lib/python3.10/site-packages/aioshelly/rpc_device/wsrpc.py", line 347, in call
resp = await self._rpc_call(method, params, timeout)
File "/usr/local/lib/python3.10/site-packages/aioshelly/rpc_device/wsrpc.py", line 379, in _rpc_call
resp: dict[str, Any] = await call.resolve

@thecode thecode merged commit 20d32e8 into main Jan 9, 2023
@thecode thecode deleted the canceled_await branch January 9, 2023 22:12
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

Successfully merging this pull request may close these issues.

2 participants