Updating Home Assistant Core in python virtualenv

To update Home Assistant Core installed in a python virtual environment (see Installing Home Assistant Core in python virtual environment) required:

1. Stop the Home Assistant system service:

sudo systemctl stop home-assistant@$USER.service

where $USER is the username under which Home Assistant was installed

2. Change to the python virtual environment where Home Assistant Core was installed:

cd ~/homeassistant
source bin/activate

3. Download updates:

pip3 install --upgrade homeassistant

4. Exit the python virtual environment and start the Home Assistant system service:

deactivate
sudo systemctl start home-assistant@$USER.service