homebridge-melcloud-control 4.4.1-beta.13 → 4.4.1-beta.14

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.4.1-beta.13",
4
+ "version": "4.4.1-beta.14",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/functions.js CHANGED
@@ -157,12 +157,8 @@ class Functions extends EventEmitter {
157
157
  return result;
158
158
  } catch { }
159
159
  }
160
-
161
- // 4. Jeśli dalej brak → path = null
162
- return result;
163
160
  }
164
161
 
165
-
166
162
  /* ===================== Linux x64 ===================== */
167
163
  if (isLinux) {
168
164
  const linuxCandidates = ['/usr/bin/chromium', '/usr/bin/chromium-browser', '/usr/bin/google-chrome', '/snap/bin/chromium', '/usr/local/bin/chromium'];
@@ -231,7 +231,7 @@ class MelCloudHome extends EventEmitter {
231
231
  if (!chromiumPath) {
232
232
  try {
233
233
  chromiumPath = puppeteer.executablePath();
234
- if (this.logDebug) this.emit('debug', `Using Puppeteer Chromium (${chromiumInfo.arch}) at ${chromiumPath}`);
234
+ if (!this.logDebug) this.emit('debug', `Using Puppeteer Chromium (${chromiumInfo.arch}) at ${chromiumPath}`);
235
235
  } catch (error) {
236
236
  accountInfo.Info = `No Chromium available for architecture ${chromiumInfo.arch}`;
237
237
  return accountInfo;
@@ -241,7 +241,7 @@ class MelCloudHome extends EventEmitter {
241
241
  // Verify Chromium executable
242
242
  try {
243
243
  const { stdout } = await execPromise(`"${chromiumPath}" --version`);
244
- if (this.logDebug) this.emit('debug', `Chromium detected: ${stdout.trim()}`);
244
+ if (!this.logDebug) this.emit('debug', `Chromium detected: ${stdout.trim()}`);
245
245
  } catch (error) {
246
246
  accountInfo.Info = `Chromium found at ${chromiumPath}, but cannot be executed: ${error.message}`;
247
247
  return accountInfo;