Add method to request the state of Core

This commit is contained in:
Franck Nijhof 2023-10-22 17:06:24 +02:00
parent 2f86c63e60
commit c664d19e86
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

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'
}