diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index 11f9549f0..4a63ccefc 100755 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -6,8 +6,8 @@ set -e # INITIALIZATION # ################## -# Exit if /config is not mounted -if [ ! -d /config ]; then +# Exit if /config is not mounted or HA not used +if [ ! -d /config ] || ! bashio::supervisor.ping 2>/dev/null; then exit 0 fi