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. #