homebridge-melcloud-control 4.0.0-beta.428 → 4.0.0-beta.429
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 -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.429",
|
|
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
|
@@ -2,6 +2,7 @@ import fs from 'fs';
|
|
|
2
2
|
import { exec } from 'child_process';
|
|
3
3
|
import { promises as fsPromises } from 'fs';
|
|
4
4
|
import { promisify } from 'util';
|
|
5
|
+
import puppeteer from 'puppeteer-core';
|
|
5
6
|
const execAsync = promisify(exec);
|
|
6
7
|
|
|
7
8
|
class Functions {
|
|
@@ -109,8 +110,8 @@ class Functions {
|
|
|
109
110
|
// --- Fallback: Puppeteer Chromium ---
|
|
110
111
|
chromiumPath = puppeteer.executablePath();
|
|
111
112
|
logWarn(`Using bundled Puppeteer Chromium at ${chromiumPath}`);
|
|
112
|
-
return chromiumPath;
|
|
113
113
|
|
|
114
|
+
return chromiumPath;
|
|
114
115
|
} catch (err) {
|
|
115
116
|
logError(`Chromium detection/install error: ${err.message}`);
|
|
116
117
|
throw err;
|