Home Assistant Core 2023.3.0 & python 3.11

I have perfectly working instalation of Home Assistant 2023.3.0 in venv running by python 3.10.
Because I read in changelog that now is python 3.11 suported i tryed to install hass in venv with python 3.11, but I got following errors:

(hass311) homeassistant@hass:~$ hass --script check_config
Testing configuration at /home/homeassistant/.homeassistant
Failed config
  General Errors: 
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Platform error switch.rflink - Exception importing homeassistant.components.rflink.switch
    - Component error: rflink - Exception importing homeassistant.components.rflink

I followed install procedure which worked with python 3.9 and 3.10, and my configuration is working.
Do anybody have idea what went wrong?
In the mean time, I am going back to python 3.10.

1 Like

Probably problem in dependency like here.
You should open an issue.

Pending of dependency:

Hi folks,
Apologies if this is an obvious question. Iā€™m new to the development process with H.A.

I had working RFLink system using USB. The recent upgrades have stopped this from working and Iā€™m suspecting this thread points to the reason.
Will the natural course of developments fix this or is there a risk that RFlink will now no longer function in the future?

Typical bad timing on my side, I had jjust purchased the parts to add the RFlink to Wifi interface.

Thanks for guidance.

Well,
I belive that developers will fix problem with rflink and python 3.11 before python 3.11 become mandatory.
Until than, python 3.10 works just fine.
But of course, there are chances that this integration become forgoten because according metrics just 738 active installations are using it. I hope that this will not happened.

Good news!

This morning I updated my HA Core to 2023.4.6 and routinely checked it against python 3.11.
Surprise! It works!
I couldnā€™t find anything related in changelog, but RFlink integration is finally fixed to work with python 3.11. This was obstacle which prevent me to use my HA with allegedly much faster python 3.11.
Thank you so much to the developers!

Hi @IgorZg, good you got it working!
Which procedure did you use to upgrade python?

I followed this procedure myself, which can be found at

I simply updated the version number and the process was successful without any issues.

1 Like

I am running HA Core under Ubuntu 22.04 amd64. I simply installed python 3.11 via ppa at deadsnakes in Launchpad.

1 Like

Lucky you, python 3.9.2 is the latest available on RPi

Well, that it is not true. You can allways build python from source, and that is not to complicated.

This is exactly what I did and I provided a guide to follow.
So what I said is very true, latest version available as a package is 3.9.2 on raspbian.