From dc6ba0d6d5dd4c65141c0dce554c1f29284b034f Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 28 Aug 2020 17:27:37 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20healthy=20/=20supported=20to?= =?UTF-8?q?=20supervisor=20(#33)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/supervisor.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/supervisor.sh b/lib/supervisor.sh index a6795e5..129e611 100644 --- a/lib/supervisor.sh +++ b/lib/supervisor.sh @@ -133,6 +133,22 @@ function bashio::supervisor.arch() { bashio::supervisor 'supervisor.info.arch' '.arch' } +# ------------------------------------------------------------------------------ +# Returns the supported state of the system. +# ------------------------------------------------------------------------------ +function bashio::supervisor.supported() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::supervisor 'supervisor.info.supported' '.supported' +} + +# ------------------------------------------------------------------------------ +# Returns the healthy state of the system. +# ------------------------------------------------------------------------------ +function bashio::supervisor.healthy() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::supervisor 'supervisor.info.healthy' '.healthy' +} + # ------------------------------------------------------------------------------ # Returns or sets the stability channel of the setup. #