homebridge-melcloud-control 4.0.0-beta.545 → 4.0.0-beta.547
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 +3 -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.547",
|
|
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
|
@@ -374,10 +374,11 @@ class MelCloud extends EventEmitter {
|
|
|
374
374
|
const loginText = await page.evaluate(el => el.textContent.trim(), loginBtn);
|
|
375
375
|
|
|
376
376
|
if (!['Zaloguj', 'Sign In', 'Login'].includes(loginText)) {
|
|
377
|
-
accountInfo.Info =
|
|
377
|
+
accountInfo.Info = `Login button ${loginText} not found in search array`;
|
|
378
378
|
return accountInfo;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
+
this.emit('warn', `Found login button ${loginText}`);
|
|
381
382
|
await loginBtn.click();
|
|
382
383
|
await page.waitForNavigation({ waitUntil: 'networkidle2', timeout: GLOBAL_TIMEOUT / 3 });
|
|
383
384
|
|
|
@@ -389,7 +390,7 @@ class MelCloud extends EventEmitter {
|
|
|
389
390
|
return accountInfo;
|
|
390
391
|
}
|
|
391
392
|
|
|
392
|
-
this.emit('warn', `Type credentials data
|
|
393
|
+
this.emit('warn', `Type credentials data...`);
|
|
393
394
|
await page.type('input[name="username"]', this.user, { delay: 50 });
|
|
394
395
|
await page.type('input[name="password"]', this.passwd, { delay: 50 });
|
|
395
396
|
|