su -s /bin/bash homeassistant mkdir ~/ha virtualenv -p python3 ~/ha source ~/ha/bin/activate pip3 install --upgrade homeassistant