homebridge-melcloud-control 4.2.3-beta.37 → 4.2.3-beta.38

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.2.3-beta.37",
4
+ "version": "4.2.3-beta.38",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/melcloud.js CHANGED
@@ -55,7 +55,7 @@ class MelCloud extends EventEmitter {
55
55
  // MELCloud
56
56
  async checkDevicesList() {
57
57
  try {
58
- const devicesList = { State: false, Info: null, Devices: [] }
58
+ const devicesList = { State: false, Info: null, Devices: [], Scenes: [] }
59
59
  if (this.logDebug) this.emit('debug', `Scanning for devices...`);
60
60
  const listDevicesData = await axios(ApiUrls.ListDevices, {
61
61
  method: 'GET',
@@ -215,7 +215,7 @@ class MelCloud extends EventEmitter {
215
215
  return devicesList;
216
216
  }
217
217
 
218
- const scenes = this.checkScenesList();
218
+ const scenes = await this.checkScenesList();
219
219
 
220
220
  devicesList.State = true;
221
221
  devicesList.Info = `Found ${devicesCount} devices`;