forked from peter/volvo2mqtt
Move vcc api key to settings
This commit is contained in:
+2
-1
@@ -9,6 +9,7 @@
|
||||
"volvoData": {
|
||||
"username": "",
|
||||
"password": "",
|
||||
"vin": ""
|
||||
"vin": "",
|
||||
"vccapikey": ""
|
||||
}
|
||||
}
|
||||
@@ -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": "*/*"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user