homebridge-melcloud-control 4.0.0-beta.74 → 4.0.0-beta.76
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.
|
@@ -262,8 +262,8 @@
|
|
|
262
262
|
if (removedDevicesCount) updateInfo('info2', `Removed devices: ATA: ${removedAta.length}, ATW: ${removedAtw.length}, ERV: ${removedErv.length}.`, 'orange');
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
await homebridge.updatePluginConfig(
|
|
266
|
-
await homebridge.savePluginConfig(
|
|
265
|
+
await homebridge.updatePluginConfig(acc);
|
|
266
|
+
await homebridge.savePluginConfig(acc);
|
|
267
267
|
document.getElementById('logIn').className = "btn btn-secondary";
|
|
268
268
|
|
|
269
269
|
} 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.
|
|
4
|
+
"version": "4.0.0-beta.76",
|
|
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/melcloudata.js
CHANGED
|
@@ -75,7 +75,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
75
75
|
//device info
|
|
76
76
|
const hideVaneControls = deviceData.HideVaneControls ?? false;
|
|
77
77
|
const hideDryModeControl = deviceData.HideDryModeControl ?? false;
|
|
78
|
-
const serialNumber = deviceData.SerialNumber;
|
|
78
|
+
const serialNumber = deviceData.SerialNumber || deviceData.DeviceID || 'Undefined';
|
|
79
79
|
|
|
80
80
|
//device
|
|
81
81
|
const device = deviceData.Device ?? {};
|