homebridge-melcloud-control 4.0.0-beta.10 → 4.0.0-beta.11
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 +1 -11
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.11",
|
|
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
|
@@ -237,7 +237,7 @@ class MelCloud extends EventEmitter {
|
|
|
237
237
|
await page.type('input[name="password"]', thispasswd);
|
|
238
238
|
|
|
239
239
|
// Kliknij przycisk logowania
|
|
240
|
-
const button = await page.$('
|
|
240
|
+
const button = await page.$('input[type="submit"]');
|
|
241
241
|
await Promise.all([
|
|
242
242
|
button.click(),
|
|
243
243
|
page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 20000 })
|
|
@@ -252,16 +252,6 @@ class MelCloud extends EventEmitter {
|
|
|
252
252
|
]);
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
// Opcjonalnie obsługa "Stay signed in?"
|
|
256
|
-
const staySignedInSelector = 'input[name="rememberDevice"], button[type="submit"]';
|
|
257
|
-
if (await page.$(staySignedInSelector)) {
|
|
258
|
-
console.log('Handling "Stay signed in?" screen...');
|
|
259
|
-
await Promise.all([
|
|
260
|
-
page.click(staySignedInSelector),
|
|
261
|
-
page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 20000 })
|
|
262
|
-
]);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
255
|
// Monitorowanie requestów i oczekiwanie na cookies C1 i C2
|
|
266
256
|
let c1 = null, c2 = null;
|
|
267
257
|
const start = Date.now();
|