Closed cvermot closed 3 years ago
Hi,
I looked about websockets. I think that some python dependencies have been updated to websockets 8.x to 9.0. I found here : https://websockets.readthedocs.io/en/stable/changelog.html
9.0 May 1, 2021
Note Version 9.0 moves or deprecates several APIs.
Aliases provide backwards compatibility for all previously public APIs.
Headers and MultipleValuesError were moved from websockets.http to websockets.datastructures. If you’re using them, you should adjust the import path.
The client, server, protocol, and auth modules were moved from the websockets package to websockets.legacy sub-package, as part of an upcoming refactoring. Despite the name, they’re still fully supported. The refactoring should be a transparent upgrade for most uses when it’s available. The legacy implementation will be preserved according to the backwards-compatibility policy.
So, I think we would have some impact on the code...
Thanks for reporting, i've just commited a quick fix on addon base, could you try a rebuild pls ? (refresh addon store just to be sure)
Found the issue, will post a fix soon
Fixed, easy peasy lemon squeezy for that one ^^
Thank you for the quick fix ! It's work !
Hi every body,
My addon was working fine. But after updating the addon from 0.99 to 1.01, it didn't work anymore... I get this erros in the addon log : ` File "/opt/tydom2mqtt/tydomConnector.py", line 120, in connect self.connection = await websockets.client.connect('wss://{}:443/mediation/client?mac={}&appli=1'.format(self.host, self.mac), File "/usr/lib/python3.8/site-packages/websockets/imports.py", line 96, in getattr raise AttributeError(f"module {package!r} has no attribute {name!r}") AttributeError: module 'websockets' has no attribute 'client'