homebridge-melcloud-control 2.5.0-beta.14 → 2.5.0-beta.15

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.
@@ -28,29 +28,33 @@ class PluginUiServer extends HomebridgePluginUiServer {
28
28
  let data = {};
29
29
  const melCloud = new MelCloud(user, passwd, language, accountInfoFile, deviceInfoFile, buildingsFile, enableDebugMode, refreshInterval, true);
30
30
  melCloud.on('devicesList', (devices) => {
31
- return data = {
31
+ data = {
32
32
  info: 'Check devices list complete.',
33
33
  status: 0,
34
34
  data: devices
35
35
  };
36
+ return data;
36
37
  })
37
38
  .on('success', (message) => {
38
- return data = {
39
+ data = {
39
40
  info: message,
40
41
  status: 1
41
42
  };
43
+ return data;
42
44
  })
43
45
  .on('message', (message) => {
44
- return data = {
46
+ data = {
45
47
  info: message,
46
48
  status: 2
47
49
  };
50
+ return data;
48
51
  })
49
52
  .on('debug', (debug) => {
50
- return data = {
53
+ data = {
51
54
  info: debug,
52
55
  status: 3
53
56
  };
57
+ return data;
54
58
  })
55
59
  .on('warn', (warn) => {
56
60
  return data = {
@@ -59,10 +63,11 @@ class PluginUiServer extends HomebridgePluginUiServer {
59
63
  };
60
64
  })
61
65
  .on('error', async (error) => {
62
- return data = {
66
+ data = {
63
67
  info: error,
64
68
  status: 5
65
69
  };
70
+ return data;
66
71
  });
67
72
  };
68
73
  };
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.14",
4
+ "version": "2.5.0-beta.15",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",