Skip to content

Commit

Permalink
Bugfix AllTimeHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
NoBl committed Oct 22, 2023
1 parent a37fc56 commit 455dc48
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ This channel contains values polled from SENEC App-API.


## Changelog
### 1.6.10 (NoBl)
* Bugfix for AllTimeHistory (should work again)

### 1.6.9 (NoBl)
* Added switch in config to enable active control of appliance (you will need activate this, if you want to control the appliance via the adapter)
* Improved handling of forced loading (please report if we need more appliance-states covered by this)
Expand Down
15 changes: 14 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "senec",
"version": "1.6.9",
"version": "1.6.10",
"news": {
"1.6.10": {
"en": "Bugfix for AllTimeHistory",
"de": "Bugfix für AllTimeHistory",
"ru": "Bugfix для AllTimeИстория",
"pt": "Bugfix para AllTimeHistory",
"nl": "Bugfix voor AllTimeHistory",
"fr": "Bugfix pour AllTimeHistory",
"it": "Bugfix per AllTimeHistory",
"es": "Bugfix para AllTimeHistory",
"pl": "Bugfix for AllTimeHistory (ang.)",
"uk": "Виправлення помилок для AllTimeHistory",
"zh-cn": "九. 一切制度"
},
"1.6.9": {
"en": "Improved battery forced loading, added switch in config to allow active control of appliance.",
"de": "Manuelles Laden verbessert, zusätzlicher Schalter in Config, um aktive Steuerung des Gerätes zu erlauben.",
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ class Senec extends utils.Adapter {
*/
async insertAllTimeHistory(system, key, year, value, einheit) {
if (key === '__proto__' || key === 'constructor' || key === 'prototype') return; // Security fix
if (!isNaN(year) || !isNaN(value)) return; // Security fix
if (isNaN(year) || isNaN(value)) return; // Security fix
const pfx = "_api.Anlagen." + system + ".Statistik.AllTime.";
const valueStore = pfx + "valueStore";
const statsObj = await this.getStateAsync(valueStore);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.senec",
"version": "1.6.9",
"version": "1.6.10",
"description": "Senec Home",
"author": {
"name": "NoBl",
Expand Down

0 comments on commit 455dc48

Please sign in to comment.