core: KNX unable to start
The problem
Since upgrade to 2022.8.2, my KNX integration fails to start with the following error:
Logger: homeassistant.setup
Source: setup.py:192
First occurred: 16:31:50 (1 occurrences)
Last logged: 16:31:50
Setup failed for knx: Unable to import component: cannot import name 'XknxConnectionState' from 'xknx.core' (/usr/local/lib/python3.10/site-packages/xknx/core/__init__.py)
What version of Home Assistant Core has the issue?
2022.08.3
What was the last working version of Home Assistant Core?
2022.08.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
KNX
Link to integration documentation on our website
https://www.home-assistant.io/integrations/knx/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.setup
Source: setup.py:192
First occurred: 16:31:50 (1 occurrences)
Last logged: 16:31:50
Setup failed for knx: Unable to import component: cannot import name 'XknxConnectionState' from 'xknx.core' (/usr/local/lib/python3.10/site-packages/xknx/core/__init__.py)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 34 (18 by maintainers)
Removed dependency for the custom component and with @farmio’s permission copied old code still suitable for us, released a new version which can be upgraded to via HACS. Thanks for pointing it out!
Don’t see yet a scenario when we would need that…
Thanks @nagyrobi, the new version works well for me, no more issue after upgrading back to 2022.8.3.
Now that’s something special if I’ve ever seen it 😄.
I have just tried
ghcr.io/home-assistant/odroid-n2-homeassistant:2022.8.3
locally in Docker and it works fine for me (not HA-OS, but only the container). I could run KNX as expected.What about 2022.8.2 ?
Just KNX-Ultimate in NodeRed, not sure if that counts?