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 +3 -0
- package/io-package.json +13 -13
- package/main.js +3 -6
- package/package.json +1 -1
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.
|
|
4
|
+
"version": "1.3.14",
|
|
5
5
|
"news": {
|
|
6
|
-
"1.3.
|
|
7
|
-
"en": "Fix
|
|
8
|
-
"de": "
|
|
9
|
-
"ru": "\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \
|
|
10
|
-
"pt": "
|
|
11
|
-
"nl": "
|
|
12
|
-
"fr": "
|
|
13
|
-
"it": "
|
|
14
|
-
"es": "
|
|
15
|
-
"pl": "
|
|
16
|
-
"uk": "\u0412\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \
|
|
17
|
-
"zh-cn": "\u4fee\u590d\
|
|
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
|
-
|
|
593
|
-
|
|
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
|
|
624
|
+
} catch {
|
|
628
625
|
return [];
|
|
629
626
|
}
|
|
630
627
|
}
|