iobroker.alpha-ess 1.2.0 → 1.2.1

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/README.md CHANGED
@@ -63,6 +63,10 @@ How to find SN and Check code for registration is described here: https://github
63
63
  **All product and company names or logos are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them or any associated subsidiaries! This personal project is maintained in spare time and has no business goal.**
64
64
 
65
65
  ## Changelog
66
+ ### 1.2.1 (2023-11-11)
67
+
68
+ - (Gaspode) Fixed severe error in ClosedAPI
69
+
66
70
  ### 1.2.0 (2023-11-10)
67
71
 
68
72
  - (Gaspode) Added additional realtime attributes for OpenAPI
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "alpha-ess",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "news": {
6
+ "1.2.1": {
7
+ "en": "Fixed severe error in ClosedAPI",
8
+ "de": "Schweren Fehler in ClosedAPI behoben",
9
+ "ru": "Исправлена тяжелая ошибка в ClosedAPI",
10
+ "pt": "Erro grave fixo em ClosedAPI",
11
+ "nl": "Een ernstige fout in ClosedAPI",
12
+ "fr": "Erreur sévère fixe dans le fichier FerméAPI",
13
+ "it": "Risolto grave errore in ClosedAPI",
14
+ "es": "Error severo corregido en CerradaAPI",
15
+ "pl": "Szczegółowy błąd w ClosedAPI",
16
+ "uk": "Виправлено тяжку помилку в ClosedAPI",
17
+ "zh-cn": "A. 近似严重错误"
18
+ },
6
19
  "1.2.0": {
7
20
  "en": "Added additional realtime attributes for OpenAPI",
8
21
  "de": "Zusätzliche Echtzeit-Attribute für OpenAPI hinzugefügt",
package/main.js CHANGED
@@ -2426,9 +2426,11 @@ class AlphaEss extends utils.Adapter {
2426
2426
  }
2427
2427
  else {
2428
2428
  // Look for subvalues:
2429
- for (const [alphaAttrName2, rawValue2] of Object.entries(data[alphaAttrName])) {
2430
- const stateInfo2 = this.getStateInfoByAlphaAttrName(group, alphaAttrName2);
2431
- this.createStateForAttribute(group, data[alphaAttrName], rawValue2, alphaAttrName2, stateInfo2, setObjectFunc);
2429
+ if (data[alphaAttrName]) {
2430
+ for (const [alphaAttrName2, rawValue2] of Object.entries(data[alphaAttrName])) {
2431
+ const stateInfo2 = this.getStateInfoByAlphaAttrName(group, alphaAttrName2);
2432
+ this.createStateForAttribute(group, data[alphaAttrName], rawValue2, alphaAttrName2, stateInfo2, setObjectFunc);
2433
+ }
2432
2434
  }
2433
2435
  }
2434
2436
  }
@@ -2444,9 +2446,11 @@ class AlphaEss extends utils.Adapter {
2444
2446
  }
2445
2447
  else {
2446
2448
  // Look for subvalues:
2447
- for (const [alphaAttrName2, rawValue2] of Object.entries(data[alphaAttrName])) {
2448
- const stateInfo2 = this.getStateInfoByAlphaAttrName(group, alphaAttrName2);
2449
- this.setValueForAttribute(group, rawValue2, stateInfo2, idx);
2449
+ if (data[alphaAttrName]) {
2450
+ for (const [alphaAttrName2, rawValue2] of Object.entries(data[alphaAttrName])) {
2451
+ const stateInfo2 = this.getStateInfoByAlphaAttrName(group, alphaAttrName2);
2452
+ this.setValueForAttribute(group, rawValue2, stateInfo2, idx);
2453
+ }
2450
2454
  }
2451
2455
  }
2452
2456
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.alpha-ess",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Read and write data from and to Alpha ESS systems.",
5
5
  "author": {
6
6
  "name": "Gaspode",