iobroker.sigenergy 1.3.13 → 1.3.14

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
@@ -156,6 +156,9 @@ MIT License — Copyright (c) 2025 ioBroker Community
156
156
  ---
157
157
 
158
158
  ## Changelog
159
+ ### 1.3.14 (2026-03-13)
160
+ * Fix last two lint errors: collapse setTimeout in testConnection, use bare catch in _getSerialPorts
161
+
159
162
  ### 1.3.13 (2026-03-13)
160
163
  * Fix all ESLint/Prettier errors: add JSDoc to all methods, fix formatting, remove unused imports
161
164
 
package/io-package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "sigenergy",
4
- "version": "1.3.13",
4
+ "version": "1.3.14",
5
5
  "news": {
6
- "1.3.13": {
7
- "en": "Fix all ESLint/Prettier errors: add JSDoc to all methods, fix formatting, remove unused imports",
8
- "de": "Alle ESLint/Prettier-Fehler behoben: JSDoc erg\u00e4nzt, Formatierung korrigiert, ungenutzte Importe entfernt",
9
- "ru": "\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 ESLint/Prettier: JSDoc \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u044b",
10
- "pt": "Todos os erros ESLint/Prettier corrigidos: JSDoc adicionado, formata\u00e7\u00e3o corrigida, importa\u00e7\u00f5es n\u00e3o utilizadas removidas",
11
- "nl": "Alle ESLint/Prettier-fouten opgelost: JSDoc toegevoegd, opmaak gecorrigeerd, ongebruikte imports verwijderd",
12
- "fr": "Tous les erreurs ESLint/Prettier corrig\u00e9es: JSDoc ajout\u00e9, formatage corrig\u00e9, imports inutilis\u00e9s supprim\u00e9s",
13
- "it": "Tutti gli errori ESLint/Prettier corretti: JSDoc aggiunto, formattazione corretta, import inutilizzati rimossi",
14
- "es": "Todos los errores ESLint/Prettier corregidos: JSDoc a\u00f1adido, formato corregido, importaciones no usadas eliminadas",
15
- "pl": "Wszystkie b\u0142\u0119dy ESLint/Prettier naprawione: dodano JSDoc, poprawiono formatowanie, usuni\u0119to nieu\u017cywane importy",
16
- "uk": "\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0432\u0441\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 ESLint/Prettier: \u0434\u043e\u0434\u0430\u043d\u043e JSDoc, \u0432\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f, \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043e \u043d\u0435\u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u0456 \u0456\u043c\u043f\u043e\u0440\u0442\u0438",
17
- "zh-cn": "\u4fee\u590d\u6240\u6709 ESLint/Prettier \u9519\u8bef\uff1a\u4e3a\u6240\u6709\u65b9\u6cd5\u6dfb\u52a0 JSDoc\uff0c\u4fee\u6b63\u683c\u5f0f\uff0c\u5220\u9664\u672a\u4f7f\u7528\u7684\u5bfc\u5165"
6
+ "1.3.14": {
7
+ "en": "Fix last two lint errors: collapse setTimeout, use bare catch",
8
+ "de": "Letzte zwei Lint-Fehler behoben: setTimeout komprimiert, catch ohne Binding",
9
+ "ru": "\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0430 lint-\u043e\u0448\u0438\u0431\u043a\u0438",
10
+ "pt": "Corrigidos os dois \u00faltimos erros de lint",
11
+ "nl": "Laatste twee lint-fouten opgelost",
12
+ "fr": "Correction des deux derni\u00e8res erreurs de lint",
13
+ "it": "Corretti gli ultimi due errori lint",
14
+ "es": "Corregidos los dos \u00faltimos errores de lint",
15
+ "pl": "Naprawiono ostatnie dwa b\u0142\u0119dy lint",
16
+ "uk": "\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043d\u0456 \u0434\u0432\u0430 lint-\u043f\u043e\u043c\u0438\u043b\u043a\u0438",
17
+ "zh-cn": "\u4fee\u590d\u6700\u540e\u4e24\u4e2a lint \u9519\u8bef"
18
18
  }
19
19
  },
20
20
  "titleLang": {
package/main.js CHANGED
@@ -589,11 +589,8 @@ class Sigenergy extends utils.Adapter {
589
589
  result = await Promise.race([
590
590
  testModbus.testConnection(),
591
591
  new Promise((_, reject) =>
592
- setTimeout(
593
- () => reject(new Error('Test timed out — no response from device')),
594
- hardTimeout,
595
- ),
596
- ),
592
+ setTimeout(() => reject(new Error('Test timed out — no response from device')), hardTimeout),
593
+ ),
597
594
  ]);
598
595
  } catch (e) {
599
596
  result = { success: false, message: e.message };
@@ -624,7 +621,7 @@ class Sigenergy extends utils.Adapter {
624
621
  value: p.path,
625
622
  label: `${p.path}${p.manufacturer ? ` (${p.manufacturer})` : ''}`,
626
623
  }));
627
- } catch (_e) {
624
+ } catch {
628
625
  return [];
629
626
  }
630
627
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.sigenergy",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "description": "ioBroker adapter for Sigenergy solar energy systems via Modbus TCP/RTU",
5
5
  "author": {
6
6
  "name": "ssbingo",