homebridge-melcloud-control 2.5.0-beta.45 → 2.5.0-beta.47
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.
|
@@ -156,9 +156,12 @@
|
|
|
156
156
|
const deviceType = deviceInfo.Type;
|
|
157
157
|
const deviceId = deviceInfo.DeviceID;
|
|
158
158
|
const deviceName = deviceInfo.DeviceName;
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
const
|
|
159
|
+
|
|
160
|
+
const accountDevices = pluginConfig[0].accounts[this.deviceIndex];
|
|
161
|
+
const ataDevicesExist = accountDevices.includes('ataDevices') ? pluginConfig[0].accounts[this.deviceIndex].ataDevices : pluginConfig[0].accounts[this.deviceIndex].ataDevices = [];
|
|
162
|
+
const atwDevicesExist = accountDevices.includes('atwDevices') ? pluginConfig[0].accounts[this.deviceIndex].atwDevices : pluginConfig[0].accounts[this.deviceIndex].atwDevices = [];
|
|
163
|
+
const ervDevicesExist = accountDevices.includes('ervDevices') ? pluginConfig[0].accounts[this.deviceIndex].ervDevices : pluginConfig[0].accounts[this.deviceIndex].ervDevices = [];
|
|
164
|
+
|
|
162
165
|
const ataDeviceIdExist = ataDevices.some(device => device.id === deviceId)
|
|
163
166
|
const atwDeviceIdExist = atwDevices.some(device => device.id === deviceId)
|
|
164
167
|
const ervDeviceIdExist = ervDevices.some(device => device.id === deviceId)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "2.5.0-beta.
|
|
4
|
+
"version": "2.5.0-beta.47",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|