This commit is contained in:
Hans Karlinius
2024-12-04 04:12:52 +01:00
parent 6e962aca55
commit def10e43a5
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
#!/usr/bin/with-contenv bashio
preventconfig=bashio::cache.get preventconfig
bashio::log.info "GURKA ${preventconfig}"
if bashio::config.has_value 'usbdevices'; then
options=$(bashio::api.supervisor GET "/addons/self/options/config")
usbdevices_json=$(echo $options | jq -c '.usbdevices[]')