mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 05:34:20 +01:00
Fix g-assistant (#293)
* Update config.json * Update CHANGELOG.md * Update config.json * Update run.sh * Update hassio_gassistant.py
This commit is contained in:
@@ -6,6 +6,7 @@ CLIENT_JSON=/data/client.json
|
||||
CRED_JSON=/data/cred.json
|
||||
|
||||
CLIENT_SECRETS=$(jq --raw-output '.client_secrets' $CONFIG_PATH)
|
||||
MODEL_ID=$(jq --raw-output '.model_id' $CONFIG_PATH)
|
||||
|
||||
# check if a new assistant file exists
|
||||
if [ -f "/share/$CLIENT_SECRETS" ]; then
|
||||
@@ -21,4 +22,4 @@ elif [ ! -f "$CRED_JSON" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec python3 /hassio_gassistant.py "$CRED_JSON" < /dev/null
|
||||
exec python3 /hassio_gassistant.py "$CRED_JSON" "$MODEL_ID" < /dev/null
|
||||
|
||||
Reference in New Issue
Block a user