homebridge-melcloud-control 4.0.0-beta.546 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/melcloud.js +3 -3
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.546",
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,11 +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 = 'Login button not found or has unexpected label';
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 ${loginBtn}, text: ${loginText}`);
381
+ this.emit('warn', `Found login button ${loginText}`);
382
382
  await loginBtn.click();
383
383
  await page.waitForNavigation({ waitUntil: 'networkidle2', timeout: GLOBAL_TIMEOUT / 3 });
384
384
 
@@ -390,7 +390,7 @@ class MelCloud extends EventEmitter {
390
390
  return accountInfo;
391
391
  }
392
392
 
393
- this.emit('warn', `Type credentials data..`);
393
+ this.emit('warn', `Type credentials data...`);
394
394
  await page.type('input[name="username"]', this.user, { delay: 50 });
395
395
  await page.type('input[name="password"]', this.passwd, { delay: 50 });
396
396