This Script does all the steps for upgrading via clicking on the Copy to clipboard button and pasting in your SSH while logged into your Home Assistant, it may stop on the system upgrade depending on what is updated simply paste it again to run through it again.
-
This is intended for Venv installs not for other type of installs.
-
Back up your Home assistant configuration files before proceeding.
-
This will reboot the System after it updates your Home Assistant so verify Breaking Changes are addressed first or you could break your system.
-
Copy and paste below.
-
If it does not reboot it did not fully update simply repaste to finish the update.
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
sudo -u homeassistant -H -s
cd
source /srv/homeassistant/bin/activate
pip3 install --upgrade homeassistant
exit
sudo reboot
IF YOU GET ERRORS UPGRADING TRY INSTALLING BELOW
sudo apt install cargo -Y