diff --git a/settings.json b/settings.json index 72ad4d0..f5c9b41 100644 --- a/settings.json +++ b/settings.json @@ -9,6 +9,7 @@ "volvoData": { "username": "", "password": "", - "vin": "" + "vin": "", + "vccapikey": "" } } \ No newline at end of file diff --git a/volvo.py b/volvo.py index 1c7565f..6a365bd 100644 --- a/volvo.py +++ b/volvo.py @@ -8,7 +8,7 @@ from const import charging_system_states, CLIMATE_START_URL, \ session = requests.Session() session.headers = { - "vcc-api-key": "f0d0419bf51d420c8efb21cf9a127227", + "vcc-api-key": settings["volvoData"]["vccapikey"], "content-type": "application/json", "accept": "*/*" }