Skip to content

Commit 93e00b5

Browse files
authored
Add method to request the state of Core (#142)
1 parent 2f86c63 commit 93e00b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/info.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,11 @@ function bashio::info.operating_system() {
148148
bashio::log.trace "${FUNCNAME[0]}"
149149
bashio::info 'supervisor.info.operating_system' '.operating_system'
150150
}
151+
152+
# ------------------------------------------------------------------------------
153+
# Returns the current state of Home Assistant Core
154+
# ------------------------------------------------------------------------------
155+
function bashio::info.state() {
156+
bashio::log.trace "${FUNCNAME[0]}"
157+
bashio::info 'supervisor.info.running' '.state'
158+
}

0 commit comments

Comments
 (0)