HA Core upgrade python 3.7 to 3.8

Hello there,

I run HA core with python3.7 on Fedora 31. I would like to upgrade to Fedora 32. In Fedora 32 python 3.7 is replaced by python3.8.
What steps should I perform to properly upgrade it?
Backup folder with HA, upgrade to Fedora 32, create python3.8 venv in HA folder, start HA?
Is there anything else that I should consider before running an upgrade?

BR

Moving to a different install method that uses Docker (Home Assistant OS, Supervised or Container), so that you don’t need to bother with dependencies and installing a new python version every year.
And upgrading Home Assistant, because Python 3.7 has been deprecated in the last release, so the newest version wouldn’t even run in your current system.

No need (or use) in backing up the old HA venv. Just back up your .homeassistant folder, just tar it or something. You can then do a full new installation of HA (create new venv, install HA), after Fedora was updated and Python 3.8 was installed. Let it run once, stop it. Replace the default .homeassistant folder it created by your backup. That’s it.

No need to contaminate your system with Docker if you don’t already use it. HA Core is fine and updating Python every now and then takes a few minutes at most.

2 Likes