homebridge-melcloud-control 4.0.0-beta.55 → 4.0.0-beta.56

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/melcloud.js +3 -2
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.55",
4
+ "version": "4.0.0-beta.56",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/melcloud.js CHANGED
@@ -246,17 +246,18 @@ class MelCloud extends EventEmitter {
246
246
  };
247
247
 
248
248
  // Usuń stare pola Settings i Capabilities
249
- const { Settings, settings, Capabilities, ...rest } = device;
249
+ const { Settings, settings, Capabilities, Id, ...rest } = device;
250
250
 
251
251
  return {
252
252
  ...rest,
253
- DeviceID: device.Id,
253
+ DeviceID: Id, // <-- zmiana na DeviceID
254
254
  DeviceName: device.GivenDisplayName,
255
255
  Device: deviceObject
256
256
  };
257
257
  });
258
258
 
259
259
 
260
+
260
261
  await this.functions.saveData(this.devicesFile, devices);
261
262
  if (this.logDebug) this.emit('debug', `${devicesCount} devices saved`);
262
263