Move vcc api key to settings

This commit is contained in:
Linus Dietz
2023-06-19 12:39:20 +02:00
parent 1dc38e6925
commit 3440dadeab
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
"volvoData": { "volvoData": {
"username": "", "username": "",
"password": "", "password": "",
"vin": "" "vin": "",
"vccapikey": ""
} }
} }
+1 -1
View File
@@ -8,7 +8,7 @@ from const import charging_system_states, CLIMATE_START_URL, \
session = requests.Session() session = requests.Session()
session.headers = { session.headers = {
"vcc-api-key": "f0d0419bf51d420c8efb21cf9a127227", "vcc-api-key": settings["volvoData"]["vccapikey"],
"content-type": "application/json", "content-type": "application/json",
"accept": "*/*" "accept": "*/*"
} }