home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.04k stars 29.7k forks source link

Shelly: aioshelly (Concurrent call to receive() is not allowed") #105273

Closed martinarva closed 7 months ago

martinarva commented 9 months ago

The problem

Shelly integration has crached my HA since yesterday. I guess it's related to 2023.12 update which happened also yesterday. Happened once yesterday and now this morning again. Had to restart the HA docker to be able to access HA UI again.

HA just hangs and UI is not available. Last log items are these (like 10 of them):

File "/usr/local/lib/python3.11/site-packages/aiohttp/client_ws.py", line 232, in receive raise RuntimeError("Concurrent call to receive() is not allowed") RuntimeError: Concurrent call to receive() is not allowed 2023-12-08 07:12:48.593 WARNING (MainThread) [aioshelly.rpc_device.wsrpc] Response for an unknown request id: 755 2023-12-08 07:12:48.593 ERROR (MainThread) [aioshelly.rpc_device.wsrpc] Unexpected error while receiving message Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aioshelly/rpc_device/wsrpc.py", line 328, in _rx_msgs msg = await self._client.receive()

What version of Home Assistant Core has the issue?

core-2023.12.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Shelly

Link to integration documentation on our website

https://www.home-assistant.io/integrations/shelly/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response