Quick upgrade for Venv installs of Home assistant

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.

  1. This is intended for Venv installs not for other type of installs.

  2. Back up your Home assistant configuration files before proceeding.

  3. This will reboot the System after it updates your Home Assistant so verify Breaking Changes are addressed first or you could break your system.

  4. Copy and paste below.

  5. 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

It won’t :wink:

No need for a reboot, you can just restart the service

1 Like

well this last update I just did the OS wanted a reboot so there is that

Absolutely no need to reboot. And I always also run:

pip3 install --upgrade home-assistant-frontend