homebridge-melcloud-control 4.5.6 → 4.5.7-beta.1

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.5.6",
4
+ "version": "4.5.7-beta.1",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -113,7 +113,6 @@ class MelCloudAta extends EventEmitter {
113
113
  updateState = true;
114
114
  break;
115
115
  case 'unitCommunicationRestored':
116
- timestamp = messageData.timestamp;
117
116
  deviceData.Device.IsConnected = true;
118
117
  break;
119
118
  default:
@@ -97,7 +97,6 @@ class MelCloudAtw extends EventEmitter {
97
97
  updateState = true;
98
98
  break;
99
99
  case 'unitCommunicationRestored':
100
- timestamp = messageData.timestamp;
101
100
  deviceData.Device.IsConnected = true;
102
101
  break;
103
102
  default:
@@ -97,7 +97,6 @@ class MelCloudErv extends EventEmitter {
97
97
  updateState = true;
98
98
  break;
99
99
  case 'unitCommunicationRestored':
100
- timestamp = messageData.timestamp;
101
100
  deviceData.Device.IsConnected = true;
102
101
  break;
103
102
  default:
@@ -330,7 +330,7 @@ class MelCloudHome extends EventEmitter {
330
330
  })
331
331
  .on('message', (message) => {
332
332
  const parsedMessage = JSON.parse(message);
333
- if (this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
333
+ if (!this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
334
334
  if (parsedMessage.message === 'Forbidden') return;
335
335
 
336
336
  this.emit('webSocket', parsedMessage);