Update homeassistant-core-install.sh

This commit is contained in:
CanbiZ 2025-01-08 16:51:06 +01:00 committed by GitHub
parent a4c62bba72
commit 7e93e5ee36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,19 +61,15 @@ $STD apt-get install -y \
ln -sf /usr/bin/python3.13 /usr/bin/python3
msg_ok "Setup Python3"
msg_info "Installing UV"
$STD pip install uv
msg_ok "Installed UV"
msg_info "Setting up Home Assistant-Core environment"
mkdir /srv/homeassistant
cd /srv/homeassistant
uv venv . &>/dev/null
python3 venv . &>/dev/null
source bin/activate
msg_ok "Created virtual environment with UV"
msg_info "Installing Home Assistant-Core and packages"
$STD uv pip install webrtcvad wheel homeassistant mysqlclient psycopg2-binary isal
$STD python3 -m pip install webrtcvad wheel homeassistant==2025.1.1 mysqlclient psycopg2-binary isal
mkdir -p /root/.homeassistant
msg_ok "Installed Home Assistant-Core and required packages"