mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-13 11:19:52 +02:00
Move vcc api key to settings
This commit is contained in:
+2
-1
@@ -9,6 +9,7 @@
|
|||||||
"volvoData": {
|
"volvoData": {
|
||||||
"username": "",
|
"username": "",
|
||||||
"password": "",
|
"password": "",
|
||||||
"vin": ""
|
"vin": "",
|
||||||
|
"vccapikey": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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": "*/*"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user