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:
Pascal Vizeli
2018-05-09 20:28:13 +02:00
committed by GitHub
parent d2d1d8aa01
commit 01ee4990ec
4 changed files with 11 additions and 5 deletions

View File

@@ -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