homebridge-melcloud-control 4.0.0-beta.409 → 4.0.0-beta.410
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 +2 -2
- package/src/melcloud.js +1 -4
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.410",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"async-mqtt": "^2.6.3",
|
|
40
40
|
"axios": "^1.12.2",
|
|
41
41
|
"express": "^5.1.0",
|
|
42
|
-
"puppeteer": "^24.26.1",
|
|
42
|
+
"puppeteer-core": "^24.26.1",
|
|
43
43
|
"axios-cookiejar-support": "^6.0.4",
|
|
44
44
|
"tough-cookie": "^6.0.0",
|
|
45
45
|
"jsdom": "^27.0.1"
|
package/src/melcloud.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import { execSync } from 'child_process';
|
|
3
|
-
import puppeteer from 'puppeteer';
|
|
3
|
+
import puppeteer from 'puppeteer-core';
|
|
4
4
|
import axios from 'axios';
|
|
5
5
|
import EventEmitter from 'events';
|
|
6
6
|
import MelCloudHomeToken from './melcloudhometoken.js';
|
|
7
7
|
import ImpulseGenerator from './impulsegenerator.js';
|
|
8
8
|
import Functions from './functions.js';
|
|
9
9
|
import { ApiUrls, ApiUrlsHome } from './constants.js';
|
|
10
|
-
import { URLSearchParams } from 'url';
|
|
11
|
-
const TOKEN_ENDPOINT = 'https://auth.melcloudhome.com/connect/token';
|
|
12
|
-
const REDIRECT_URI = 'melcloudhome://';
|
|
13
10
|
|
|
14
11
|
class MelCloud extends EventEmitter {
|
|
15
12
|
constructor(accountType, user, passwd, language, accountFile, buildingsFile, devicesFile, logWarn, logDebug, requestConfig) {
|