From fa21e39ac51ae538976a545d8d872252e6f2d77e Mon Sep 17 00:00:00 2001 From: rleidner Date: Sat, 24 Aug 2024 21:30:36 +0200 Subject: [PATCH] BMW SOC module: fix outdated API definitions --- modules/soc_i3/i3soc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/soc_i3/i3soc.py b/modules/soc_i3/i3soc.py index 61568ebbc..3eea263df 100755 --- a/modules/soc_i3/i3soc.py +++ b/modules/soc_i3/i3soc.py @@ -15,11 +15,11 @@ auth_server = 'customer.bmwgroup.com' api_server = 'cocoapi.bmwgroup.com' APIKey = b'NGYxYzg1YTMtNzU4Zi1hMzdkLWJiYjYtZjg3MDQ0OTRhY2Zh' -USER_AGENT = 'Dart/3.0 (dart:io)' +USER_AGENT = 'Dart/3.3 (dart:io)' REGION = '0' # 0 = rest_of_world BRAND = 'bmw' # for auth bmw or mini don't matter -X_USER_AGENT1 = 'android(TQ2A.230405.003.B2);' -X_USER_AGENT2 = ';3.11.1(29513);' +X_USER_AGENT1 = 'android(AP2A.240605.024);' +X_USER_AGENT2 = ';4.7.2(35379);' X_USER_AGENT = X_USER_AGENT1 + BRAND + X_USER_AGENT2 + REGION CONTENT_TYPE = 'application/x-www-form-urlencoded' CHARSET = 'charset=UTF-8'