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

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.
@@ -209,8 +209,9 @@
209
209
 
210
210
  // remove stale devices
211
211
  for (let i = configArray.length - 1; i >= 0; i--) {
212
- if (!melcloudIds.includes(configArray[i].id)) {
213
- removedArray.push(configArray[i]);
212
+ const device = configArray[i];
213
+ if (device.id !== 0 && !melcloudIds.includes(device.id)) {
214
+ removedArray.push(device);
214
215
  configArray.splice(i, 1);
215
216
  }
216
217
  }
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.2",
4
+ "version": "3.9.0-beta.3",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",