homebridge-melcloud-control 3.7.0-beta.2 → 3.7.0-beta.3

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.
@@ -1774,7 +1774,7 @@
1774
1774
  "accounts[].ataDevices[].refreshInterval"
1775
1775
  ],
1776
1776
  "condition": {
1777
- "functionBody": "return model.accounts[arrayIndices].ataDevices[arrayIndices].disableAccessory === false;"
1777
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ataDevices || []; return devices.[arrayIndices].disableAccessory === false;"
1778
1778
  }
1779
1779
  },
1780
1780
  {
@@ -1800,7 +1800,7 @@
1800
1800
  }
1801
1801
  ],
1802
1802
  "condition": {
1803
- "functionBody": "return model.accounts[arrayIndices].ataDevices[arrayIndices].disableAccessory === false;"
1803
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ataDevices || []; return devices.[arrayIndices].disableAccessory === false;"
1804
1804
  }
1805
1805
  },
1806
1806
  {
@@ -1814,7 +1814,7 @@
1814
1814
  "accounts[].ataDevices[].temperatureSensorOutdoor"
1815
1815
  ],
1816
1816
  "condition": {
1817
- "functionBody": "return model.accounts[arrayIndices].ataDevices[arrayIndices].disableAccessory === false;"
1817
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ataDevices || []; return devices.[arrayIndices].disableAccessory === false;"
1818
1818
  }
1819
1819
  },
1820
1820
  {
@@ -1837,7 +1837,7 @@
1837
1837
  }
1838
1838
  ],
1839
1839
  "condition": {
1840
- "functionBody": "return model.accounts[arrayIndices].ataDevices[arrayIndices].disableAccessory === false;"
1840
+ "functionBody": "const devices = model.accounts[arrayIndices]?.ataDevices || []; return devices.[arrayIndices].disableAccessory === false;"
1841
1841
  }
1842
1842
  }
1843
1843
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "3.7.0-beta.2",
4
+ "version": "3.7.0-beta.3",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",