Add method to request the state of Core (#142)

This commit is contained in:
Franck Nijhof 2023-10-22 17:07:55 +02:00 committed by GitHub
parent 2f86c63e60
commit 93e00b593e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,3 +148,11 @@ function bashio::info.operating_system() {
bashio::log.trace "${FUNCNAME[0]}"
bashio::info 'supervisor.info.operating_system' '.operating_system'
}
# ------------------------------------------------------------------------------
# Returns the current state of Home Assistant Core
# ------------------------------------------------------------------------------
function bashio::info.state() {
bashio::log.trace "${FUNCNAME[0]}"
bashio::info 'supervisor.info.running' '.state'
}