This commit is contained in:
Hans Karlinius
2024-11-30 09:52:13 +01:00
parent f0c1a27863
commit ca41ff1cda
3 changed files with 8 additions and 4 deletions

View File

@@ -15,5 +15,3 @@ for device in "${devices[@]}"; do
bashio::api.supervisor POST "/addons/self/options" "${options_payload}"
fi
done
bashio::addons.reload
bashio::cache.flush_all

View File

@@ -1,2 +1,8 @@
#!/usr/bin/with-contenv bashio
bashio::log.info "Adding selected devices"
options=$(bashio::api.supervisor GET "/addons/self/options/config")
for device in "${options}.usbdevices[@]}"; do
bashio::log.info "Set AUTO USE DEVICE ${device}"
done