homebridge-melcloud-control 4.4.1-beta.4 → 4.4.1-beta.6

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/index.js CHANGED
@@ -146,7 +146,7 @@ class MelCloudPlatform {
146
146
  // set rest ful port
147
147
  account.restFul.port = (device.id).slice(-4).replace(/^0/, '9');
148
148
 
149
- if (accountType === 'melcloudhome') {
149
+ if (type === 'melcloudhome') {
150
150
  account.restFul.port = `${3000}${index}`;
151
151
 
152
152
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.4.1-beta.4",
4
+ "version": "4.4.1-beta.6",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -39,7 +39,7 @@
39
39
  "mqtt": "^5.14.1",
40
40
  "axios": "^1.13.2",
41
41
  "express": "^5.2.1",
42
- "puppeteer": "^24.32.1",
42
+ "puppeteer": "^24.33.0",
43
43
  "ws": "^8.18.3"
44
44
  },
45
45
  "keywords": [
@@ -326,7 +326,7 @@ class MelCloudHome extends EventEmitter {
326
326
  })
327
327
  .on('message', (message) => {
328
328
  const parsedMessage = JSON.parse(message);
329
- if (this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
329
+ if (!this.logDebug) this.emit('debug', `Incoming message: ${JSON.stringify(parsedMessage, null, 2)}`);
330
330
  if (parsedMessage.message === 'Forbidden') return;
331
331
 
332
332
  this.emit('webSocket', parsedMessage);