mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-03 18:41:31 +00:00
Add method to request the state of Core (#142)
This commit is contained in:
parent
2f86c63e60
commit
93e00b593e
1 changed files with 8 additions and 0 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue