homebridge-melcloud-control 4.3.0-beta.46 → 4.3.0-beta.47

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.3.0-beta.46",
4
+ "version": "4.3.0-beta.47",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -147,8 +147,9 @@ class MelCloudAta extends EventEmitter {
147
147
  if (parsedMessage.message === 'Forbidden') return;
148
148
 
149
149
  const messageData = parsedMessage?.[0]?.Data;
150
- const unitId = messageData?.id;
150
+ if (!messageData) return;
151
151
 
152
+ const unitId = messageData?.id;
152
153
  switch (unitId) {
153
154
  case this.deviceId:
154
155
  const messageType = parsedMessage[0].messageType;