homebridge-melcloud-control 3.9.0-beta.3 → 3.9.0-beta.4

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.
@@ -20,9 +20,9 @@
20
20
  <form id="configForm">
21
21
  <div class="text-center">
22
22
  <label id="accountName" class="fw-bold" style="font-size: 23px;">Account</label><br>
23
- <label id="info" class="d-block" style="font-size: 17px;"></label>
24
- <label id="info1" class="d-block" style="font-size: 15px;"></label>
25
- <label id="info2" class="d-block" style="font-size: 15px;"></label>
23
+ <label id="info" class="d-block" style="font-size: 16px;"></label>
24
+ <label id="info1" class="d-block" style="font-size: 14px;"></label>
25
+ <label id="info2" class="d-block" style="font-size: 14px;"></label>
26
26
  </div>
27
27
 
28
28
  <div class="mb-3">
@@ -208,11 +208,12 @@
208
208
  const melcloudIds = devices.map(d => d.DeviceID);
209
209
 
210
210
  // remove stale devices
211
- for (let i = configArray.length - 1; i >= 0; i--) {
212
- const device = configArray[i];
211
+ for (let i = ataDevicesInConfig.length - 1; i >= 0; i--) {
212
+ const device = ataDevicesInConfig[i];
213
+ // Only remove if it's a real device (id != 0) and missing in MELCloud
213
214
  if (device.id !== 0 && !melcloudIds.includes(device.id)) {
214
- removedArray.push(device);
215
- configArray.splice(i, 1);
215
+ removedDevices.ata.push(device);
216
+ ataDevicesInConfig.splice(i, 1);
216
217
  }
217
218
  }
218
219
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.9.0-beta.3",
4
+ "version": "3.9.0-beta.4",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",