homebridge-melcloud-control 4.0.0-beta.440 → 4.0.0-beta.442
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 +1 -1
- package/src/functions.js +2 -8
- package/src/melcloud.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.442",
|
|
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
|
@@ -77,14 +77,8 @@ class Functions {
|
|
|
77
77
|
|
|
78
78
|
// --- macOS fallback ---
|
|
79
79
|
if (osName === 'Darwin') {
|
|
80
|
-
console.log('Running on macOS — using
|
|
81
|
-
|
|
82
|
-
chromiumPath = puppeteer.executablePath();
|
|
83
|
-
if (!chromiumPath) {
|
|
84
|
-
console.log('Puppeteer bundled Chromium not found on macOS');
|
|
85
|
-
throw new Error('Puppeteer bundled Chromium not found on macOS');
|
|
86
|
-
}
|
|
87
|
-
|
|
80
|
+
console.log('Running on macOS — using system Chromium/Chrome');
|
|
81
|
+
chromiumPath = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';
|
|
88
82
|
console.log(`Chromium path: ${chromiumPath}`);
|
|
89
83
|
return chromiumPath;
|
|
90
84
|
}
|
package/src/melcloud.js
CHANGED
|
@@ -355,7 +355,7 @@ class MelCloud extends EventEmitter {
|
|
|
355
355
|
page.setDefaultTimeout(30000);
|
|
356
356
|
page.setDefaultNavigationTimeout(30000);
|
|
357
357
|
|
|
358
|
-
await page.goto(
|
|
358
|
+
await page.goto(ApiUrlsHome.BaseURL, { waitUntil: ['domcontentloaded', 'networkidle2'] });
|
|
359
359
|
|
|
360
360
|
const buttons = await page.$$('button.btn--blue');
|
|
361
361
|
let loginBtn = null;
|