How can I install a specific version of homeassistant

Hi,

I understand that /home/homeassistant/homeassistant-update.sh allows me to update to the latest version, and I can see that this script is actually exec sudo -u homeassistant dash -c '. /home/homeassistant/pyenv-activate.sh; exec pip3 install --no-cache-dir -U homeassistant'.

I was wondering if there was an obvious edit I could make to this to install a previous version of HA (to help trouble-shoot a bug).

Thanks.

Try this:

#!/bin/dash
exec sudo -u homeassistant dash -c '. /home/homeassistant/pyenv-activate.sh; exec pip3 install homeassistant==2022.5.5 --no-cache-dir -U homeassistant'

Replace 2022.5.5 for the version you want

2 Likes

thanks, that’s great!

1 Like