homebridge-melcloud-control 3.1.3-beta.12 → 3.1.3-beta.13

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.
@@ -239,7 +239,7 @@
239
239
  ataDevices[index].presets.push(preset);
240
240
  };
241
241
  };
242
- textAtaPresets = `ATA Presets: ${ataDevices.presets.length}`
242
+ textAtaPresets = `ATA Presets: ${ataDevices[index].presets.length}`
243
243
  });
244
244
  textAta = `ATA: ${ataDevices.length}`
245
245
 
@@ -271,9 +271,9 @@
271
271
  buttonsSensors: []
272
272
  };
273
273
 
274
- const deviceExists = ataDevices.find(device => device.id === deviceId);
274
+ const deviceExists = atwDevices.find(device => device.id === deviceId);
275
275
  if (!deviceExists) {
276
- ataDevices.push(deviceAta);
276
+ atwDevices.push(deviceAtw);
277
277
  };
278
278
 
279
279
  //presets
@@ -298,7 +298,7 @@
298
298
  atwDevices[index].presets.push(preset);
299
299
  };
300
300
  };
301
- textAtwPresets = `ATW Presets: ${atwDevices.presets.length}`
301
+ textAtwPresets = `ATW Presets: ${atwDevices[index].presets.length}`
302
302
  });
303
303
  textAtw = `ATW: ${atwDevices.length}`
304
304
 
@@ -324,9 +324,9 @@
324
324
  buttonsSensors: []
325
325
  };
326
326
 
327
- const deviceExists = ataDevices.find(device => device.id === deviceId);
327
+ const deviceExists = ervDevices.find(device => device.id === deviceId);
328
328
  if (!deviceExists) {
329
- ataDevices.push(deviceAta);
329
+ ervDevices.push(deviceErv);
330
330
  };
331
331
 
332
332
  //presets
@@ -351,7 +351,7 @@
351
351
  ervDevices[index].presets.push(preset);
352
352
  };
353
353
  };
354
- textErvPresets = `ERV Presets: ${ervDevices.presets.length}`
354
+ textErvPresets = `ERV Presets: ${ervDevices[index].presets.length}`
355
355
  });
356
356
  textErv = `ERV: ${ervDevices.length}`
357
357
 
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.12",
4
+ "version": "3.1.3-beta.13",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",