Skip to content

Commit

Permalink
Add method to request the state of Core (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 22, 2023
1 parent 2f86c63 commit 93e00b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit 93e00b5

Please sign in to comment.