homebridge-melcloud-control 4.0.0-beta.50 → 4.0.0-beta.51
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.
- package/package.json +1 -1
- package/src/melcloud.js +2 -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.
|
|
4
|
+
"version": "4.0.0-beta.51",
|
|
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
|
@@ -215,11 +215,11 @@ class MelCloud extends EventEmitter {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
const devices = allDevices.map(device => ({
|
|
218
|
+
...device, // zachowuje wszystkie pola z allDevices
|
|
218
219
|
DeviceID: device.Id,
|
|
219
220
|
DeviceName: device.GivenDisplayName,
|
|
220
221
|
Settings: Object.fromEntries((device.Settings || []).map(({ Name, Value }) => [Name, Value])),
|
|
221
|
-
Device: device.Capabilities
|
|
222
|
-
Type: device.Type
|
|
222
|
+
Device: device.Capabilities
|
|
223
223
|
}));
|
|
224
224
|
|
|
225
225
|
await this.functions.saveData(this.devicesFile, devices);
|