Open CletusVanDam24 opened 2 years ago
@Ligio can you update this custom component to python 3.10?
I second that, integration is broken
Thirdsies.. broken…
2022-07-09 15:18:11 ERROR (MainThread) [homeassistant.setup] Error during setup of component ozmo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ozmo/init.py", line 90, in setup
from ozmo import EcoVacsAPI, VacBot
File "/usr/local/lib/python3.10/site-packages/ozmo/init.py", line 15, in
https://docs.python.org/3.9/library/collections.html says: """ Deprecated since version 3.3, will be removed in version 3.10: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.9. """
@Ligio @clayauld @joshuaspence @MajorBreakfast can you update the library to allow to work with 2022.7?
I am not using this component anymore but it looks like it will be tricky to fix this. The incompatible code isn't in the component but is in a dependency. https://github.com/OverloadUT/SleekXMPP hasn't been updated in 3.5 years. It is a fork of https://github.com/fritzy/SleekXMPP, which hasn't been updated in 2 years and has been marked as deprecated.
There is, however, a fork of that dependency that may have a fix.
See https://github.com/aszymanik/SleekXMPP
I haven't looked at this yet, but may try to see if that can be a workable solution. My Deebot is currently inop so I won't be able to test any fixes other than checking to see if the component loads in HA.
Oh, thats a good find. I started looking at this, https://github.com/poezio/slixmpp, which is the recommended solution, but it didnt look quite so easy to drop in.
A similar issue has been raised on the official Ecovacs integration so it may be worthwhile pooling resources to find a solution.
@aszymanik has a fix but it's not necessarily an HA issue. The underlying library (sleekxmppfs) is quite outdated compared to the head branch and apparently is no longer working. I was able to pull fritzy/SleekXMPP, update it to work with python 3.10, and get HA to work nicely again. I put in a PR with sleekxmppfs and if this gets approved, can move on to add the updates.
The actual commit that made this work was fairly simple: https://github.com/aszymanik/SleekXMPP/commit/8fc0359eed5bedaca1a4710a43151c512d44c029
If you cannot wait until these PR requests go through, you can make the following changes:
Pull my updated library. This is up to date with fritzy/SleekXMPP but includes OverloadUT/SleekXMPP's renaming and disabling of cert checks. git pull https://github.com/aszymanik/SleekXMPP Install library. Enter into SleekXMPP/ directory then: python setup.py install You may need to disable your OS's version of sleekxmppfs so that it will use this updated version. In docker, the command is mv /usr/local/lib/python3.10/site-packages/sleekxmppfs/ /usr/local/lib/python3.10/site-packages/sleekxmppfs_old/
Any update on this? Just curious as I have no idea what you guys are talking about. Haha
Do you have any update on it?
seems like this is abandonware
This issue seems to be fixed in HA 2022.8.7, mine is working again now
This issue seems to be fixed in HA 2022.8.7, mine is working again now
Same for me 🎊🎊🎊
2022.8.7 all works again! thank you @ivanp123
That’s why this community rocks. Can’t thank you enough.
Yep! All good again! 👌
Hello, There was a significant upgrade to Home Assistant recently which broke many integrations - this one included. Will there be an update to this to support 2022.7? This has been the only integration I can get working with my M80 Pro.
Thanks in advance