-
Notifications
You must be signed in to change notification settings - Fork 29
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
ZHA Toolkit fails to initialise on Home Assistant Core: 2023.7.2 #176
Comments
Same here! |
yep same here.
Maybe noteworthy: |
I've managed to create a work around locally, it's a hack - no two ways about it, but it'll buy some time until a proper fix can be evaluated: I've edited utils.py in the custom_components/zha_toolkit, and updated anything to do with zigpy imports (note that I moved the version import to the bottom so that a missing zigpy will fail first rather than assume a version).
|
Here's my fix for this issue: #177 |
@pdecat thats the correct solution, nice. |
@pdecat Thank you for providing the fix. I am upgrading to 2023.7.2, and if ok the package will be put in "release" state. |
Its not fully fixed in v0.9.3 which just got released, I am still seeing this in the logs: Traceback (most recent call last): The fix looks pretty simple. |
@mdeweerd |
Upgraded from 2023.7.1 to 2023.7.2
Configuration invalid!
Component error: zha_toolkit - cannot import name 'version' from 'zigpy' (/usr/local/lib/python3.11/site-packages/zigpy/init.py)
Home Assistant 2023.7.2
Supervisor 2023.07.1
Operating System 10.3
Frontend 20230705.1 - latest
Digging into this further, we see in: custom_components/zha_toolkit/utils.py
16: from zigpy import __version__ as zigpy_version
This (latest) commit in ZigPy against init.py seems to have broken it:
zigpy/zigpy@50f2e6e
To be specific the 0.56.2 version is the issue, from here the version information is not embedded anymore, they prefer to use GIT versioning, but of course the python lib folder is not a working copy.
I was able to ascertain via a pip query on home assistant core that it is 0.56.2, is that something that can be done for ZHA Toolkit, or does someone have a smarter idea?
The text was updated successfully, but these errors were encountered: