homebridge-melcloud-control 4.0.0-beta.307 → 4.0.0-beta.308
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/melcloud.js +2 -2
- package/src/melcloudhometoken.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.308",
|
|
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
|
@@ -281,7 +281,7 @@ class MelCloud extends EventEmitter {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
async
|
|
284
|
+
async connectToMelCloudHome1() {
|
|
285
285
|
let browser;
|
|
286
286
|
try {
|
|
287
287
|
browser = await puppeteer.launch({
|
|
@@ -322,7 +322,7 @@ class MelCloud extends EventEmitter {
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
|
|
325
|
-
async
|
|
325
|
+
async connectToMelCloudHome(refresh = false) {
|
|
326
326
|
if (this.logDebug) this.emit('debug', `Connecting to MELCloud Home`);
|
|
327
327
|
|
|
328
328
|
let browser;
|
package/src/melcloudhometoken.js
CHANGED
|
@@ -120,8 +120,8 @@ class MelCloudHomeToken {
|
|
|
120
120
|
authUrl.searchParams.set('code_challenge', pkce.challenge);
|
|
121
121
|
authUrl.searchParams.set('code_challenge_method', 'S256');
|
|
122
122
|
authUrl.searchParams.set('state', state);
|
|
123
|
+
|
|
123
124
|
const loginPage = await this.getLoginPage(authUrl.toString());
|
|
124
|
-
|
|
125
125
|
const data = { codeVerifier: pkce.verifier, url: loginPage.url }
|
|
126
126
|
return data;
|
|
127
127
|
} catch (error) {
|