Allow version without HA support

This commit is contained in:
Alexandre
2025-02-11 14:59:54 +01:00
committed by GitHub
parent 41cec03df1
commit 1a3bb55273

View File

@@ -4,7 +4,7 @@ set -e
# ==============================================================================
# Displays a simple add-on banner on startup
# ==============================================================================
if bashio::supervisor.ping; then
if bashio::supervisor.ping 2>/dev/null; then
bashio::log.blue \
'-----------------------------------------------------------'
bashio::log.blue " Add-on: $(bashio::addon.name)"
@@ -39,7 +39,6 @@ if bashio::supervisor.ping; then
' Provided by: https://github.com/alexbelgium/hassio-addons '
bashio::log.blue \
'-----------------------------------------------------------'
fi
# ==============================================================================
# Global actions for all addons
@@ -59,3 +58,11 @@ fi
# Clean bashrc file
if [ -f ~/.bashrc ]; then rm ~/.bashrc; fi
else
bashio::log.blue \
'-----------------------------------------------------------'
bashio::log.blue " Starting addon without HA support"
bashio::log.blue \
'-----------------------------------------------------------'
fi