Initial add-on code

This commit is contained in:
Franck Nijhof 2019-03-24 23:43:22 +01:00
parent 416e586602
commit 344e8f48be
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
20 changed files with 810 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Hass.io Add-ons: Visual Studio Code
# Executes user configured/requested commands on startup
# ==============================================================================
if bashio::config.has_value 'init_commands'; then
while read -r cmd; do
eval "${cmd}" \
|| bashio::exit.nok "Failed executing init command: ${cmd}"
done <<< "$(bashio::config 'init_commands')"
fi