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": {
"username": "",
"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.headers = {
"vcc-api-key": "f0d0419bf51d420c8efb21cf9a127227",
"vcc-api-key": settings["volvoData"]["vccapikey"],
"content-type": "application/json",
"accept": "*/*"
}