From 3a9bfb48846249c3a6da2a8ff6b0a62a99b66133 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 30 Jan 2026 09:09:05 +0100 Subject: [PATCH] Update ha_entrypoint.sh --- .templates/ha_entrypoint.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index 7621af626..cf2f749a2 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -2,6 +2,16 @@ # shellcheck shell=bash set -euo pipefail +###################################### +# Accept running without supervisor # +###################################### + +if ! bashio::supervisor.ping 2> /dev/null; then + bashio::log.warning "Using standalone mode to run bashio commands without HA supervisor" + mv /usr/local/lib/bashio-standalone.sh /usr/bin/bashio + chmod +x /usr/bin/bashio +fi + ########################################## # Detect if this is PID1 (main process) # ##########################################