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

AttributeError: 'ClientConnection' object has no attribute 'closed'. Did you mean: 'close'? #316

Open
livlif2dfullest opened this issue Dec 7, 2024 · 0 comments

Comments

@livlif2dfullest
Copy link

This is for a washer and dryer, using ge_home integration 0.6.13. There's a new version of gehomesdk 0.5.30, the gehome integration I'm using says 0.5.29, unfortunately the changelogs are not shown for gehomesdk so I cannot tell if this issue was fixed or not within it.
I see the following error in my Home Assistant log everyday:

2024-12-07 09:38:25.093 ERROR (MainThread) [gehomesdk.clients.base_client] 'ClientConnection' object has no attribute 'closed'
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/gehomesdk/clients/websocket_client.py", line 119, in _async_run_client
    async for message in CancellableAsyncIterator(socket, self._disconnect_requested):
  File "/usr/local/lib/python3.12/site-packages/gehomesdk/clients/async_helpers.py", line 17, in CancellableAsyncIterator
    await pending_task
  File "/usr/local/lib/python3.12/site-packages/websockets/asyncio/connection.py", line 242, in __aiter__
    yield await self.recv()
          ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/asyncio/connection.py", line 294, in recv
    return await self.recv_messages.get(decode)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/asyncio/messages.py", line 150, in get
    frame = await self.frames.get(not self.closed)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/asyncio/messages.py", line 51, in get
    await self.get_waiter
asyncio.exceptions.CancelledError: Final process shutdown

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/gehomesdk/clients/base_client.py", line 132, in async_run_client
    await self._async_run_client()
  File "/usr/local/lib/python3.12/site-packages/gehomesdk/clients/websocket_client.py", line 133, in _async_run_client
    await self._disconnect()
  File "/usr/local/lib/python3.12/site-packages/gehomesdk/clients/websocket_client.py", line 246, in _disconnect
    if self._socket and not self._socket.closed:
                            ^^^^^^^^^^^^^^^^^^^
AttributeError: 'ClientConnection' object has no attribute 'closed'. Did you mean: 'close'?
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