homebridge-melcloud-control 2.5.0-beta.85 → 2.5.0-beta.86

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.
@@ -672,7 +672,7 @@
672
672
  }
673
673
  },
674
674
  "condition": {
675
- "functionBody": "return model.accounts[arrayIndices].ataDevices.every(device => device.id);"
675
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ataDevices || []; return devices.length > 0 && devices.every(device => device.id != null && device.id !== '');"
676
676
  }
677
677
  },
678
678
  "atwDevices": {
@@ -1010,7 +1010,7 @@
1010
1010
  }
1011
1011
  },
1012
1012
  "condition": {
1013
- "functionBody": "return model.accounts[arrayIndices].atwDevices.every(device => device.id);"
1013
+ "functionBody": "const devices = model.accounts[arrayIndices]?.atwDevices || []; return devices.length > 0 && devices.every(device => device.id != null && device.id !== '');"
1014
1014
  }
1015
1015
  },
1016
1016
  "ervDevices": {
@@ -1258,7 +1258,7 @@
1258
1258
  }
1259
1259
  },
1260
1260
  "condition": {
1261
- "functionBody": "return model.accounts[arrayIndices].ervDevices.every(device => device.id);"
1261
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ervDevices || []; return devices.length > 0 && devices.every(device => device.id != null && device.id !== '');"
1262
1262
  }
1263
1263
  },
1264
1264
  "refreshInterval": {
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.85",
4
+ "version": "2.5.0-beta.86",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",