homebridge-melcloud-control 4.1.2-beta.37 → 4.1.2-beta.39
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/config.schema.json +2 -2
- package/package.json +1 -1
- package/src/melcloud.js +2 -2
package/config.schema.json
CHANGED
|
@@ -2252,7 +2252,7 @@
|
|
|
2252
2252
|
"title": "Custom",
|
|
2253
2253
|
"items": [
|
|
2254
2254
|
{
|
|
2255
|
-
"key": "accounts[].ataDevices[].buttonsSensors",
|
|
2255
|
+
"key": "accounts[].ataDevices[].buttonsSensors[]",
|
|
2256
2256
|
"type": "tabarray",
|
|
2257
2257
|
"title": "{{ value.name }}",
|
|
2258
2258
|
"items": [
|
|
@@ -2543,7 +2543,7 @@
|
|
|
2543
2543
|
"title": "Custom",
|
|
2544
2544
|
"items": [
|
|
2545
2545
|
{
|
|
2546
|
-
"key": "accounts[].ervDevices[].buttonsSensors",
|
|
2546
|
+
"key": "accounts[].ervDevices[].buttonsSensors[]",
|
|
2547
2547
|
"type": "tabarray",
|
|
2548
2548
|
"title": "{{ value.name || 'button/sensor' }}",
|
|
2549
2549
|
"items": [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.2-beta.
|
|
4
|
+
"version": "4.1.2-beta.39",
|
|
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/melcloud.js
CHANGED
|
@@ -337,7 +337,7 @@ class MelCloud extends EventEmitter {
|
|
|
337
337
|
let browser;
|
|
338
338
|
try {
|
|
339
339
|
const accountInfo = { State: false, Info: '', ContextKey: null, UseFahrenheit: false };
|
|
340
|
-
|
|
340
|
+
let chromiumPath = await this.functions.ensureChromiumInstalled();
|
|
341
341
|
|
|
342
342
|
// === Fallback to Puppeteer's built-in Chromium ===
|
|
343
343
|
if (!chromiumPath) {
|
|
@@ -349,6 +349,7 @@ class MelCloud extends EventEmitter {
|
|
|
349
349
|
}
|
|
350
350
|
} catch { }
|
|
351
351
|
}
|
|
352
|
+
|
|
352
353
|
if (!chromiumPath) {
|
|
353
354
|
accountInfo.Info = 'Chromium not found on Your device, please install it manually and try again';
|
|
354
355
|
return accountInfo;
|
|
@@ -358,7 +359,6 @@ class MelCloud extends EventEmitter {
|
|
|
358
359
|
try {
|
|
359
360
|
const { stdout } = await execPromise(`"${chromiumPath}" --version`);
|
|
360
361
|
if (this.logDebug) this.emit('debug', `Chromium detected: ${stdout.trim()}`);
|
|
361
|
-
if (this.logDebug) this.emit('debug', `Chromium detected: ${stdout.trim()}`);
|
|
362
362
|
} catch (error) {
|
|
363
363
|
accountInfo.Info = `Chromium found at ${chromiumPath}, but cannot be executed: ${error.message}`;
|
|
364
364
|
return accountInfo;
|