iobroker.renault 0.0.17 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/io-package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "renault",
4
- "version": "0.0.17",
4
+ "version": "0.0.21",
5
5
  "news": {
6
+ "0.0.21": {
7
+ "en": "fix login"
8
+ },
6
9
  "0.0.17": {
7
10
  "en": "update apikey"
8
11
  },
package/main.js CHANGED
@@ -9,7 +9,7 @@
9
9
  const utils = require("@iobroker/adapter-core");
10
10
  const axios = require("axios").default;
11
11
  const qs = require("qs");
12
- const Json2iob = require("./lib/json2iob");
12
+ const Json2iob = require("json2iob");
13
13
 
14
14
  class Renault extends utils.Adapter {
15
15
  /**
@@ -103,8 +103,6 @@ class Renault extends utils.Adapter {
103
103
  httpStatusCodes: "false",
104
104
  loginID: this.config.username,
105
105
  password: this.config.password,
106
- sdk: "js_latest",
107
- include: "profile,data",
108
106
  }),
109
107
  })
110
108
  .then((res) => {
@@ -212,7 +210,7 @@ class Renault extends utils.Adapter {
212
210
 
213
211
  for (const device of res.data.vehicleLinks) {
214
212
  this.deviceArray.push(device.vin);
215
- let name = device.vehicleDetails.modelSCR;
213
+ let name = device.vehicleDetails?.modelSCR || device.brand;
216
214
  if (device.vehicleDetails.model && device.vehicleDetails.model.label) {
217
215
  name += device.vehicleDetails.model.label;
218
216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.renault",
3
- "version": "0.0.17",
3
+ "version": "0.0.21",
4
4
  "description": "Adapter for Renault and Renault",
5
5
  "author": {
6
6
  "name": "TA2k",
@@ -25,27 +25,28 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@iobroker/adapter-core": "^2.6.8",
28
- "axios": "^1.3.6",
28
+ "axios": "^1.4.0",
29
29
  "json-bigint": "^1.0.0",
30
- "qs": "^6.11.1"
30
+ "json2iob": "^2.4.5",
31
+ "qs": "^6.11.2"
31
32
  },
32
33
  "devDependencies": {
33
34
  "@iobroker/testing": "^4.1.0",
34
- "@types/chai": "^4.3.4",
35
+ "@types/chai": "^4.3.5",
35
36
  "@types/chai-as-promised": "^7.1.5",
36
37
  "@types/mocha": "^10.0.1",
37
- "@types/node": "^18.15.12",
38
+ "@types/node": "^18.16.19",
38
39
  "@types/proxyquire": "^1.3.28",
39
- "@types/sinon": "^10.0.14",
40
+ "@types/sinon": "^10.0.15",
40
41
  "@types/sinon-chai": "^3.2.9",
41
42
  "chai": "^4.3.7",
42
43
  "chai-as-promised": "^7.1.1",
43
- "eslint": "^8.38.0",
44
+ "eslint": "^8.44.0",
44
45
  "mocha": "^10.2.0",
45
46
  "proxyquire": "^2.1.3",
46
- "sinon": "^15.0.3",
47
+ "sinon": "^15.2.0",
47
48
  "sinon-chai": "^3.7.0",
48
- "typescript": "^5.0.4"
49
+ "typescript": "^5.1.6"
49
50
  },
50
51
  "main": "main.js",
51
52
  "files": [