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 sure if it will work for other 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.

sudo apt update

sudo apt upgrade -y

sudo apt autoremove -y

sudo -u homeassistant -H -s

source /srv/homeassistant/bin/activate

pip3 install --upgrade homeassistant

exit

sudo reboot

It won’t :wink:

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

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