虚拟环境更新HA

停止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

 

posted @ 2018-12-24 10:34  新贵  阅读(240)  评论(0编辑  收藏  举报