homebridge-melcloud-control 2.5.0-beta.44 → 2.5.0-beta.46
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/config.schema.json
CHANGED
|
@@ -231,7 +231,6 @@
|
|
|
231
231
|
"type": "integer",
|
|
232
232
|
"minimum": 0,
|
|
233
233
|
"maximum": 2,
|
|
234
|
-
"default": 0,
|
|
235
234
|
"oneOf": [
|
|
236
235
|
{
|
|
237
236
|
"title": "None/Disabled",
|
|
@@ -285,7 +284,6 @@
|
|
|
285
284
|
"type": "integer",
|
|
286
285
|
"minimum": 0,
|
|
287
286
|
"maximum": 2,
|
|
288
|
-
"default": 0,
|
|
289
287
|
"oneOf": [
|
|
290
288
|
{
|
|
291
289
|
"title": "None/Disabled",
|
|
@@ -339,7 +337,6 @@
|
|
|
339
337
|
"type": "integer",
|
|
340
338
|
"minimum": 0,
|
|
341
339
|
"maximum": 2,
|
|
342
|
-
"default": 0,
|
|
343
340
|
"oneOf": [
|
|
344
341
|
{
|
|
345
342
|
"title": "None/Disabled",
|
|
@@ -156,13 +156,15 @@
|
|
|
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 ataDevices = pluginConfig[0].accounts[this.deviceIndex].includes('ataDevices') ? pluginConfig[0].accounts[this.deviceIndex].ataDevices : pluginConfig[0].accounts[this.deviceIndex].ataDevices = [];
|
|
161
|
+
const atwDevices = pluginConfig[0].accounts[this.deviceIndex].includes('atwDevices') ? pluginConfig[0].accounts[this.deviceIndex].atwDevices : pluginConfig[0].accounts[this.deviceIndex].atwDevices = [];
|
|
162
|
+
const ervDevices = pluginConfig[0].accounts[this.deviceIndex].includes('ervDevices') ? pluginConfig[0].accounts[this.deviceIndex].ervDevices : pluginConfig[0].accounts[this.deviceIndex].ervDevices = [];
|
|
163
|
+
|
|
162
164
|
const ataDeviceIdExist = ataDevices.some(device => device.id === deviceId)
|
|
163
165
|
const atwDeviceIdExist = atwDevices.some(device => device.id === deviceId)
|
|
164
166
|
const ervDeviceIdExist = ervDevices.some(device => device.id === deviceId)
|
|
165
|
-
const pushNewDevice =
|
|
167
|
+
const pushNewDevice = ataDeviceIdExist || atwDeviceIdExist || ervDeviceIdExist ? false : newDevices.push(deviceId);
|
|
166
168
|
|
|
167
169
|
const device = { name: deviceName, id: deviceId, type: deviceType, displayMode: 0 };
|
|
168
170
|
const pushTypeAta = deviceType === 0 && !ataDeviceIdExist ? ataDevices.push(device) : false;
|
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.46",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|