This commit is contained in:
Hans Karlinius
2024-11-30 01:35:59 +01:00
parent 9ce0e796eb
commit 0daec1bb5c
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ for device in "${devices[@]}"; do
bashio::log.info "Adding to config: ${device}"
new_options=$(echo $options | jq -r '.usbdevices |= . + [{ device: ($device), use: false }]')
new_options=$(echo $options | jq -n --arg value $device '.usbdevices |= . + [{ device: ($value), use: false }]')
bashio::log.info "New options: ${new_options}"
payload=$(bashio::var.json options "^${new_options}")
bashio::api.supervisor POST "/addons/self/options" "${payload}"