From 9fd4a13a8ad624e35e45f0bb91a67cc8e73bd7c4 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 4 Jan 2025 11:15:14 +0100 Subject: [PATCH] Fix: Update Python for HomeAssistant (#1227) * Python Check: HA-Core * Update Python to 3.13.X * Update homeassistant-core.sh --- ct/homeassistant-core.sh | 4 +++- install/homeassistant-core-install.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index 265e1669..f54bf4fd 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -51,7 +51,9 @@ function update_script() { echo -e "${GN}Updating to Stable Version${CL}" BR="" fi - if [[ "$PY" == "python3.11" ]]; then echo -e "⚠️ Home Assistant will soon require Python 3.12."; fi + if [[ "$PY" =~ ^python3\.(11|12)\.[0-9]+$ ]]; then + echo -e "⚠️ Home Assistant will soon require Python 3.13.x"; + fi msg_info "Stopping Home Assistant" systemctl stop homeassistant diff --git a/install/homeassistant-core-install.sh b/install/homeassistant-core-install.sh index 21163427..07df06ca 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y git curl sudo mc bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev ffmpeg liblapack3 liblapack-dev dbus-broker libpcap-dev libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev libmariadb-dev-compat libatlas-base-dev pip python3.12-dev +$STD apt-get install -y git curl sudo mc bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev ffmpeg liblapack3 liblapack-dev dbus-broker libpcap-dev libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev libmariadb-dev-compat libatlas-base-dev pip python3.13-dev msg_ok "Installed Dependencies" msg_info "Installing UV"