sudo su - -s /bin/bash homeassistant cd /opt/homeassistant source bin/activate /opt/homeassistant/bin/python3 -m pip install --upgrade homeassistant