I'm trying to use your HA integration and traced an error back to your API library. The code appears to be checking the socket is open, using an attribute which doesn't exist. I can't find "open" in the documentation of WebSockets, its perplexing me how this is working for anyone. Only thing I can think is change in attributes of library versions. I'm using:
Core 2024.11.1
Supervisor 2024.11.2
Operating System 13.2
Frontend 20241106.2
Automate-Pulse-v2 0.9.12
aiopulse2 0.9.1
Hoping you can have a look at let me know, I'm more than happy to contribute to the code base.
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/aiopulse2/devices.py", line 252, in heartbeat
if self.ws and self.ws.open and self.handshake.is_set():
^^^^^^^^^^^^
AttributeError: 'ClientConnection' object has no attribute 'open'
Hi @sillyfrog,
I'm trying to use your HA integration and traced an error back to your API library. The code appears to be checking the socket is open, using an attribute which doesn't exist. I can't find "open" in the documentation of WebSockets, its perplexing me how this is working for anyone. Only thing I can think is change in attributes of library versions. I'm using: Core 2024.11.1 Supervisor 2024.11.2 Operating System 13.2 Frontend 20241106.2 Automate-Pulse-v2 0.9.12 aiopulse2 0.9.1
Hoping you can have a look at let me know, I'm more than happy to contribute to the code base.
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/aiopulse2/devices.py", line 252, in heartbeat if self.ws and self.ws.open and self.handshake.is_set(): ^^^^^^^^^^^^ AttributeError: 'ClientConnection' object has no attribute 'open'