read the docs : https://www.home-assistant.io/installation/linux
-
stop service
-
with same python version
1cd homeassistant
2source bin/activate
3pip install --upgrade homeassistant
- with new python version
1mv homeassistant homeassistant-oldpython
2
3mkdir homeassistant & cd homeassistant
4asdf install python 3.12.5
5asdf local python 3.12.5
6
7python -m venv .
8source bin/activate
9pip install homeassistant