homebridge-melcloud-control 4.3.12 → 4.3.13

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.12",
4
+ "version": "4.3.13",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -237,21 +237,19 @@ class MelCloudHome extends EventEmitter {
237
237
  chromiumPath = puppeteerPath;
238
238
  if (this.logDebug) this.emit('debug', `Using Puppeteer bundled Chromium at ${chromiumPath}`);
239
239
  } else {
240
- if (this.logDebug) this.emit('debug', `Puppeteer returned path, but file does not exist: ${puppeteerPath}`);
240
+ accountInfo.Info = `Puppeteer returned path, but file does not exist: ${puppeteerPath}`;
241
+ return accountInfo;
241
242
  }
242
243
  } else {
243
- if (this.logDebug) this.emit('debug', `Puppeteer returned empty Chromium path`);
244
+ accountInfo.Info = `Puppeteer returned empty Chromium path`;
245
+ return accountInfo;
244
246
  }
245
247
  } catch (error) {
246
- if (this.logDebug) this.emit('debug', `Failed to get Puppeteer Chromium path: ${error.message}`);
248
+ accountInfo.Info = `Failed to get Puppeteer Chromium path: ${error.message}`;
249
+ return accountInfo;
247
250
  }
248
251
  }
249
252
 
250
- if (!chromiumPath) {
251
- accountInfo.Info = 'Chromium not found on Your device, please install it manually and try again';
252
- return accountInfo;
253
- }
254
-
255
253
  // Verify executable works
256
254
  try {
257
255
  const { stdout } = await execPromise(`"${chromiumPath}" --version`);