homebridge-melcloud-control 4.3.11 → 4.3.12

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.11",
4
+ "version": "4.3.12",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -230,16 +230,20 @@ class MelCloudHome extends EventEmitter {
230
230
 
231
231
  // === Fallback to Puppeteer's built-in Chromium ===
232
232
  if (!chromiumPath) {
233
- if (!arch.startsWith('arm')) {
234
- try {
235
- const puppeteerPath = puppeteer.executablePath();
236
- if (puppeteerPath && fs.existsSync(puppeteerPath)) {
233
+ try {
234
+ const puppeteerPath = puppeteer.executablePath();
235
+ if (puppeteerPath && puppeteerPath.length > 0) {
236
+ if (fs.existsSync(puppeteerPath)) {
237
237
  chromiumPath = puppeteerPath;
238
- if (this.logDebug) this.emit('debug', `Using Puppeteer Chromium at ${chromiumPath}`);
238
+ if (this.logDebug) this.emit('debug', `Using Puppeteer bundled Chromium at ${chromiumPath}`);
239
+ } else {
240
+ if (this.logDebug) this.emit('debug', `Puppeteer returned path, but file does not exist: ${puppeteerPath}`);
239
241
  }
240
- } catch { }
241
- } else {
242
- if (this.logDebug) this.emit('debug', 'Skipping Puppeteer Chromium on ARM (incompatible)');
242
+ } else {
243
+ if (this.logDebug) this.emit('debug', `Puppeteer returned empty Chromium path`);
244
+ }
245
+ } catch (error) {
246
+ if (this.logDebug) this.emit('debug', `Failed to get Puppeteer Chromium path: ${error.message}`);
243
247
  }
244
248
  }
245
249