From 93752f4a74060af9232dd31cba6bd14f334fce8a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 14 Jan 2021 03:19:26 +0100 Subject: [PATCH] Add core rebuild command (#44) --- lib/core.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/core.sh b/lib/core.sh index a882e3d..e9e5b88 100644 --- a/lib/core.sh +++ b/lib/core.sh @@ -31,6 +31,14 @@ function bashio::core.restart() { bashio::api.supervisor POST /core/restart } +# ------------------------------------------------------------------------------ +# Rebuild Home Assistant. +# ------------------------------------------------------------------------------ +function bashio::core.rebuild() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::api.supervisor POST /core/rebuild +} + # ------------------------------------------------------------------------------ # Updates Home Assistant to the latest version. #