From e915f173cac8a84a0d261753a113979d55ac8900 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:54:41 +0100 Subject: [PATCH] Add fake options.json --- .templates/00-banner.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.templates/00-banner.sh b/.templates/00-banner.sh index 323ef6007..9cf6bc4d9 100755 --- a/.templates/00-banner.sh +++ b/.templates/00-banner.sh @@ -4,12 +4,17 @@ set -e # ============================================================================== # Displays a simple add-on banner on startup # ============================================================================== + if ! bashio::supervisor.ping 2>/dev/null; then + # Degraded mode if no homeassistant bashio::log.blue \ '-----------------------------------------------------------' bashio::log.blue " Starting addon without HA support" bashio::log.blue \ '-----------------------------------------------------------' + # Fake options.json + mkdir -p /data + touch /data/option.json exit 0 fi