From f0964ac751d4d4d0e51f588ba43b5dd21b30a964 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 3 Jan 2023 07:29:03 -0500 Subject: [PATCH] Update homeassistant-core-v5.sh Dependency Version issue fixed in Beta --- ct/homeassistant-core-v5.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ct/homeassistant-core-v5.sh b/ct/homeassistant-core-v5.sh index ce167db9..195be24c 100644 --- a/ct/homeassistant-core-v5.sh +++ b/ct/homeassistant-core-v5.sh @@ -351,16 +351,10 @@ source /srv/homeassistant/bin/activate pip install ${BR}--upgrade homeassistant &>/dev/null msg_ok "Updated Home Assistant" -msg_info "Setting Dependency Versions" - if [ "${BR}" == "--pre " ]; then - sed -i '{s/dbus-fast==1.82.0/dbus-fast==1.83.1/g; s/bleak==0.19.2/bleak==0.19.5/g}' /srv/homeassistant/lib/python3.10/site-packages/homeassistant/package_constraints.txt - sed -i '{s/dbus-fast==1.82.0/dbus-fast==1.83.1/g; s/bleak==0.19.2/bleak==0.19.5/g}' /srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/bluetooth/manifest.json - else + if [ "${BR}" == "" ]; then sed -i '{s/dbus-fast==1.75.0/dbus-fast==1.83.1/g; s/bleak==0.19.2/bleak==0.19.5/g}' /srv/homeassistant/lib/python3.10/site-packages/homeassistant/package_constraints.txt sed -i '{s/dbus-fast==1.75.0/dbus-fast==1.83.1/g; s/bleak==0.19.2/bleak==0.19.5/g}' /srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/bluetooth/manifest.json fi -sleep 2 -msg_ok "Set Dependency Versions" msg_info "Starting Home Assistant" systemctl start homeassistant