homebridge-melcloud-control 4.0.0-beta.456 → 4.0.0-beta.458
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.
|
@@ -230,7 +230,10 @@
|
|
|
230
230
|
|
|
231
231
|
try {
|
|
232
232
|
const account = pluginConfig[0].accounts[this.accountIndex];
|
|
233
|
-
const devicesInMelCloud = await
|
|
233
|
+
const devicesInMelCloud = await Promise.race([
|
|
234
|
+
homebridge.request('/connect', account),
|
|
235
|
+
new Promise((_, reject) => setTimeout(() => reject(updateInfo('info1', `Connection timeout (30sec)`, 'red')), 30000))
|
|
236
|
+
]);
|
|
234
237
|
|
|
235
238
|
// Initialize devices arrays
|
|
236
239
|
const newDevices = { ata: [], ataPresets: [], atw: [], atwPresets: [], erv: [], ervPresets: [] };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.458",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|