停止HA服务
sudo systemctl stop homeassistant@homeassistant
开始更新HA
sudo -u homeassistant -H -s cd /srv/homeassistant source bin/activate pip3 install --upgrade homeassistant
启动HA
sudo systemctl start homeassistant@homeassistant
停止HA服务
sudo systemctl stop homeassistant@homeassistant
开始更新HA
sudo -u homeassistant -H -s cd /srv/homeassistant source bin/activate pip3 install --upgrade homeassistant
启动HA
sudo systemctl start homeassistant@homeassistant