Skip to content

Commit

Permalink
0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Oct 19, 2023
1 parent 238bd5a commit 00b37b6
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 64 deletions.
9 changes: 8 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"common": {
"name": "vw-connect",
"version": "0.1.6",
"version": "0.1.8",
"news": {
"0.1.8": {
"en": "fix skoda parking position and climatisationv2",
"de": "Fix für Skoda Parkposition und Climatisationv2"
},
"0.1.7": {
"en": "improve climatisationv2"
},
"0.1.6": {
"en": "Fix climatisationv2 error"
},
Expand Down
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class VwWeconnect extends utils.Adapter {

this.homeRegion = {};
this.homeRegionSetter = {};
this.secondAcessToken = null;
this.secondAccessToken = null;

this.vinArray = [];
this.etags = {};
Expand Down Expand Up @@ -1357,7 +1357,7 @@ class VwWeconnect extends utils.Adapter {
return;
}

if (this.config.atoken) {
if (this.config.atoken && this.clientId != "7f045eee-7003-4379-9968-9355ed2adb06%40apps_vw-dilab_com") {
this.secondAccessToken = this.config.atoken;
this.secondRefreshToken = this.config.rtoken;
}
Expand Down Expand Up @@ -5005,6 +5005,7 @@ class VwWeconnect extends utils.Adapter {
if (heaterSourceState.val) {
heaterSource = heaterSourceState.val;
}
const tagetTempState = await this.getStateAsync(vin + ".climater.settings.targetTemperature.content");
let targetTemp = 2950;
if (tagetTempState && tagetTempState.val) {
targetTemp = tagetTempState.val;
Expand Down
129 changes: 75 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"bundleDependencies": [],
"dependencies": {
"@iobroker/adapter-core": "^3.0.3",
"@iobroker/adapter-core": "^3.0.4",
"@peculiar/webcrypto": "^1.4.3",
"axios": "^1.5.1",
"json-bigint": "^1.0.0",
Expand All @@ -33,16 +33,16 @@
"description": "Adapter for VW Connect",
"devDependencies": {
"@iobroker/testing": "^4.1.0",
"@types/chai": "^4.3.6",
"@types/chai-as-promised": "^7.1.6",
"@types/chai": "^4.3.9",
"@types/chai-as-promised": "^7.1.7",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.2",
"@types/node": "^20.8.6",
"@types/proxyquire": "^1.3.29",
"@types/sinon": "^10.0.18",
"@types/sinon": "^10.0.19",
"@types/sinon-chai": "^3.2.10",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"eslint": "^8.50.0",
"eslint": "^8.51.0",
"eslint-plugin-promise": "^6.1.1",
"mocha": "^10.2.0",
"proxyquire": "^2.1.3",
Expand Down Expand Up @@ -79,5 +79,5 @@
"test:package": "mocha test/package --exit",
"test:unit": "mocha test/unit --exit"
},
"version": "0.1.6"
"version": "0.1.8"
}

0 comments on commit 00b37b6

Please sign in to comment.