homebridge-melcloud-control 4.0.0-beta.82 → 4.0.0-beta.83

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.
@@ -179,7 +179,7 @@
179
179
 
180
180
  for (let i = configDevices.length - 1; i >= 0; i--) {
181
181
  const device = configDevices[i];
182
- if (device.id !== 0 && !melcloudIds.includes(device.id)) {
182
+ if (device.id !== "0" && !melcloudIds.includes(device.id)) {
183
183
  removedDevices.push(device);
184
184
  configDevices.splice(i, 1);
185
185
  }
@@ -263,8 +263,8 @@
263
263
  if (removedDevicesCount) updateInfo('info2', `Removed devices: ATA: ${removedAta.length}, ATW: ${removedAtw.length}, ERV: ${removedErv.length}.`, 'orange');
264
264
  }
265
265
 
266
- await homebridge.updatePluginConfig(pluginConfig);
267
- await homebridge.savePluginConfig(pluginConfig);
266
+ await homebridge.updatePluginConfig(acc);
267
+ await homebridge.savePluginConfig(acc);
268
268
  document.getElementById('logIn').className = "btn btn-secondary";
269
269
 
270
270
  } catch (error) {
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.82",
4
+ "version": "4.0.0-beta.83",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",