homebridge-melcloud-control 4.0.0-beta.510 → 4.0.0-beta.512
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/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.512",
|
|
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
|
@@ -375,8 +375,8 @@ class MelCloud extends EventEmitter {
|
|
|
375
375
|
return accountInfo;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
this.emit('warn', `Found login button ${loginBtn}`);
|
|
379
378
|
await Promise.race([Promise.all([loginBtn.click(), page.waitForNavigation({ waitUntil: ['domcontentloaded', 'networkidle2'], timeout: GLOBAL_TIMEOUT / 4 })]), new Promise(r => setTimeout(r, GLOBAL_TIMEOUT / 3))]);
|
|
379
|
+
this.emit('warn', `Found login button`);
|
|
380
380
|
|
|
381
381
|
this.emit('warn', `Looking for credentials form...`);
|
|
382
382
|
const usernameInput = await page.$('input[name="username"]');
|
|
@@ -399,8 +399,8 @@ class MelCloud extends EventEmitter {
|
|
|
399
399
|
return accountInfo;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
this.emit('warn', `Found submit button ${submitButton}`);
|
|
403
402
|
await Promise.race([Promise.all([submitButton.click(), page.waitForNavigation({ waitUntil: ['domcontentloaded', 'networkidle2'], timeout: GLOBAL_TIMEOUT / 4 })]), new Promise(r => setTimeout(r, GLOBAL_TIMEOUT / 3))]);
|
|
403
|
+
this.emit('warn', `Found submit button ${submitButton}`);
|
|
404
404
|
|
|
405
405
|
this.emit('warn', `Looking for cookies...`);
|
|
406
406
|
// Extract cookies
|