1,停止运行HA
1 | sudo systemctl stop home-assistant@homeassistant.service |
2,切换用户
1 | sudo su -s /bin/bash homeassistant |
3,进环境
1 | source /srv/homeassistant/bin/activate |
4,更新
1 | pip3 install --upgrade homeassistant |
5,退出
6,运行HA
1 | sudo systemctl start home-assistant@homeassistant.service |
#备忘手札