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

'ClientConnection' object has no attribute 'closed' #306

Closed
VlastiBroucek opened this issue Nov 17, 2024 · 3 comments
Closed

'ClientConnection' object has no attribute 'closed' #306

VlastiBroucek opened this issue Nov 17, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@VlastiBroucek
Copy link

Home Assistant

  • Core: 2024.11.2
  • Supervisor: 2024.11.2
  • Operating System: 13.2
  • Frontend: 20241106.2

GE Home (SmartHQ): v0.6.13

Repeatedly getting these:

Logger: gehomesdk.clients.base_client
Source: /usr/local/lib/python3.12/site-packages/gehomesdk/clients/base_client.py:141
First occurred: 17 November 2024 at 18:58:56 (13 occurrences)
Last logged: 08:40:54

'ClientConnection' object has no attribute 'closed'
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'?
@yestrdave
Copy link

Similar
This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/ge_home/update_coordinator.py:334
integration: GE Home (documentation)
First occurred: 3:28:07 PM (1 occurrences)
Last logged: 3:28:07 PM

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/ge_home/update_coordinator.py", line 334, in on_device_initial_update
if self.connected and self.client.available:
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gehomesdk/clients/websocket_client.py", line 59, in available
return self._socket and not self._socket.closed
^^^^^^^^^^^^^^^^^^^
AttributeError: 'ClientConnection' object has no attribute 'closed'. Did you mean: 'close'?

@Waank1
Copy link

Waank1 commented Nov 30, 2024

Home Assistant

Core - 2024.11.3
Supervisor - 2024.11.4
Operating System - 13.2
Frontend - 20241106.2

Getting the same error, here is the log.

Logger: gehomesdk.clients.base_client
Source: /usr/local/lib/python3.12/site-packages/gehomesdk/clients/base_client.py:141
First occurred: November 29, 2024 at 15:58:28 (20 occurrences)
Last logged: 15:05:06

'ClientConnection' object has no attribute 'closed'
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'?

@simbaja simbaja added the duplicate This issue or pull request already exists label Dec 1, 2024
@simbaja
Copy link
Owner

simbaja commented Dec 1, 2024

Duplicate of #304, closing.

@simbaja simbaja closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants