Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker/resolve-saic-rest-uri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
# Derives SAIC_REST_URI from SAIC_REGION for known endpoints, unless SAIC_REST_URI
# is already set explicitly (so a user can always override for a region not listed
# here). Source of truth: the "API Endpoints" table in the saic-python-mqtt-gateway
# README (SAIC-iSmart-API/saic-python-mqtt-gateway).
# README (SAIC-iSmart-API/saic-python-mqtt-gateway), except for br: that table does
# not list Brazil until SAIC-iSmart-API/saic-python-mqtt-gateway#527 is merged. The
# br endpoint (gateway-mg-br) is also used by ioBroker.mg-saic, mg-saic-ha,
# homebridge-mg-saic and GdAAuto (see joszz/GarageStack#594), so do not remove it as
# unknown.
if [ -z "${SAIC_REST_URI:-}" ]; then
case "${SAIC_REGION:-eu}" in
eu) export SAIC_REST_URI="https://gateway-mg-eu.soimt.com/api.app/v1/" ;;
Expand Down
Loading