diff --git a/setup/homeassistant-core-install.sh b/setup/homeassistant-core-install.sh index 2ae98abd..b54381c2 100644 --- a/setup/homeassistant-core-install.sh +++ b/setup/homeassistant-core-install.sh @@ -135,6 +135,13 @@ pyenv install 3.10.8 &>/dev/null pyenv global 3.10.8 msg_ok "Installed Python 3.10.8" +read -r -p " Use the Beta Branch? " prompt +if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then + BR="--pre " +else + BR="" +fi + msg_info "Installing Home Assistant-Core" mkdir /srv/homeassistant cd /srv/homeassistant @@ -144,7 +151,7 @@ pip install --upgrade pip &>/dev/null python3 -m pip install wheel &>/dev/null pip install mysqlclient &>/dev/null pip install psycopg2-binary &>/dev/null -pip install homeassistant &>/dev/null +pip install ${BR}homeassistant &>/dev/null msg_ok "Installed Home Assistant-Core" # fix for inconsistent versions, hopefully the HA team will get this fixed