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)

Most upvoted comments

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?

# docker ps -a | grep homeassistant
46c37cda18f8   homeassistant/aarch64-addon-ssh:9.6.0                       "/init"   6 minutes ago   Up 6 minutes             0.0.0.0:22->22/tcp, :::22->22/tcp                                                                                              addon_core_ssh
299a8039328d   homeassistant/aarch64-addon-mosquitto:6.1.2                 "/init"   6 minutes ago   Up 6 minutes             0.0.0.0:1883-1884->1883-1884/tcp, :::1883-1884->1883-1884/tcp, 0.0.0.0:8883-8884->8883-8884/tcp, :::8883-8884->8883-8884/tcp   addon_core_mosquitto
2150d9683658   homeassistant/aarch64-hassio-supervisor:latest              "/init"   19 hours ago    Up 6 minutes                                                                                                                                            hassio_supervisor
9ee77d76e9fc   ghcr.io/home-assistant/odroid-n2-homeassistant:2022.8.3     "/init"   28 hours ago    Up 6 minutes                                                                                                                                            homeassistant