Skip to content

Commit

Permalink
add last fetch limit
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed May 5, 2024
1 parent 8c04276 commit 3567516
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 33 deletions.
2 changes: 1 addition & 1 deletion io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"fetchReports": false,
"myv": false,
"location": "germany",
"fetchReportsLimit": 100,
"fetchReportsLimit": 60,
"fetchMonths": false
},
"objects": [],
Expand Down
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ class Vaillant extends utils.Adapter {
this.log.info("Generate new Id");
this.config.smartPhoneId = this.makeid();
}

if (this.config.fetchReportsLimit > 60) {
this.log.warn("Only 60 days of the last reports are supported. Set it back to 60 days");
this.config.fetchReportsLimit = 60;
}
this.subscribeStates("*");
// Reset the connection indicator during startup
this.setState("info.connection", false, true);
Expand Down
56 changes: 28 additions & 28 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
},
"bundleDependencies": [],
"dependencies": {
"@iobroker/adapter-core": "^3.1.0",
"@iobroker/adapter-core": "^3.1.4",
"axios": "^1.6.8",
"http-cookie-agent": "^5.0.4",
"json2iob": "^2.6.8",
"json2iob": "^2.6.11",
"qs": "^6.12.1",
"request": "^2.88.2",
"tough-cookie": "^4.1.3",
"tough-cookie": "^4.1.4",
"traverse": "^0.6.9"
},
"deprecated": false,
Expand All @@ -26,7 +26,7 @@
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
"@iobroker/testing": "^4.1.3",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^20.12.7",
"@types/node": "^20.12.8",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
Expand Down

0 comments on commit 3567516

Please sign in to comment.