mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 05:34:20 +01:00
Add device register to assistant (#294)
* Update config.json * Update run.sh * Update hassio_gassistant.py * 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)
|
||||
PROJECT_ID=$(jq --raw-output '.project_id' $CONFIG_PATH)
|
||||
MODEL_ID=$(jq --raw-output '.model_id' $CONFIG_PATH)
|
||||
|
||||
# check if a new assistant file exists
|
||||
@@ -22,4 +23,4 @@ elif [ ! -f "$CRED_JSON" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec python3 /hassio_gassistant.py "$CRED_JSON" "$MODEL_ID" < /dev/null
|
||||
exec python3 /hassio_gassistant.py "$CRED_JSON" "$PROJECT_ID" "$MODEL_ID" < /dev/null
|
||||
|
||||
Reference in New Issue
Block a user