homebridge-melcloud-control 3.1.3-beta.13 → 3.1.3-beta.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.
|
@@ -157,16 +157,6 @@
|
|
|
157
157
|
erv: []
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
//new found devices
|
|
161
|
-
const newDevices = {
|
|
162
|
-
ata: [],
|
|
163
|
-
ataPresets: [],
|
|
164
|
-
atw: [],
|
|
165
|
-
atwPresets: [],
|
|
166
|
-
erv: [],
|
|
167
|
-
ervPresets: [],
|
|
168
|
-
};
|
|
169
|
-
|
|
170
160
|
//info text
|
|
171
161
|
let textAta = 'ATA: 0';
|
|
172
162
|
let textAtaPresets = 'ATA Presets: 0';
|
|
@@ -355,8 +345,8 @@
|
|
|
355
345
|
});
|
|
356
346
|
textErv = `ERV: ${ervDevices.length}`
|
|
357
347
|
|
|
358
|
-
const newDevicesCount =
|
|
359
|
-
const newPresetsCount =
|
|
348
|
+
const newDevicesCount = ataDevices[index].length + atwDevices[index].length + ervDevices[index].length ?? 0;
|
|
349
|
+
const newPresetsCount = ataDevices[index].presets.length + atwDevices[index].presets.length + ervDevices[index].presets.length ?? 0;
|
|
360
350
|
if (newDevicesCount === 0 && newPresetsCount === 0) {
|
|
361
351
|
document.getElementById('info').innerHTML = 'No new devices found.';
|
|
362
352
|
document.getElementById('info').style.color = 'white';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.1.3-beta.
|
|
4
|
+
"version": "3.1.3-beta.14",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|