homebridge-melcloud-control 4.0.0-beta.210 → 4.0.0-beta.212

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.
@@ -793,7 +793,7 @@
793
793
  ]
794
794
  },
795
795
  "condition": {
796
- "functionBody": "return model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].id != null && model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].id != 0));"
796
+ "functionBody": "const id = model.accounts[arrayIndices[0]].ataDevices[arrayIndices[1]].id; return id && id !== '0';"
797
797
  }
798
798
  },
799
799
  "atwDevices": {
@@ -1328,7 +1328,7 @@
1328
1328
  ]
1329
1329
  },
1330
1330
  "condition": {
1331
- "functionBody": "const accounts = model.accounts[arrayIndices]?.atwDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
1331
+ "functionBody": "return model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].id != null && model.accounts[arrayIndices[0]].atwDevices[arrayIndices[1]].id != 0));"
1332
1332
  }
1333
1333
  },
1334
1334
  "ervDevices": {
@@ -1676,7 +1676,7 @@
1676
1676
  ]
1677
1677
  },
1678
1678
  "condition": {
1679
- "functionBody": "const accounts = model.accounts[arrayIndices]?.ervDevices || []; return accounts.length > 0 && accounts.every(device => device.id != null);"
1679
+ "functionBody": "return model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].id != null && model.accounts[arrayIndices[0]].ervDevices[arrayIndices[1]].id != 0));"
1680
1680
  }
1681
1681
  },
1682
1682
  "refreshInterval": {
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.210",
4
+ "version": "4.0.0-beta.212",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",