homebridge-melcloud-control 4.4.1-beta.24 → 4.4.1-beta.25
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/melcloudhome.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.4.1-beta.
|
|
4
|
+
"version": "4.4.1-beta.25",
|
|
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/melcloudhome.js
CHANGED
|
@@ -513,7 +513,7 @@ class MelCloudHome extends EventEmitter {
|
|
|
513
513
|
}).toString();
|
|
514
514
|
|
|
515
515
|
// STEP 1 – get login page
|
|
516
|
-
const loginPage = await axiosRequest(authUrl, {
|
|
516
|
+
const loginPage = await this.axiosRequest(authUrl, {
|
|
517
517
|
headers: { 'User-Agent': userAgent },
|
|
518
518
|
}, jar);
|
|
519
519
|
|
|
@@ -530,7 +530,7 @@ class MelCloudHome extends EventEmitter {
|
|
|
530
530
|
password,
|
|
531
531
|
}).toString();
|
|
532
532
|
|
|
533
|
-
const loginResult = await axiosRequest(loginPage.url, {
|
|
533
|
+
const loginResult = await this.axiosRequest(loginPage.url, {
|
|
534
534
|
method: 'POST',
|
|
535
535
|
headers: {
|
|
536
536
|
'User-Agent': userAgent,
|
|
@@ -630,7 +630,7 @@ class MelCloudHome extends EventEmitter {
|
|
|
630
630
|
try {
|
|
631
631
|
const accountInfo = { State: false, Info: '', Account: {}, UseFahrenheit: false };
|
|
632
632
|
|
|
633
|
-
const tokens = await loginWithCredentials(this.user, this.passwd);
|
|
633
|
+
const tokens = await this.loginWithCredentials(this.user, this.passwd);
|
|
634
634
|
this.emit('debug', `Tokens: ${JSON.stringify(tokens, null, 2)}`);
|
|
635
635
|
return accountInfo
|
|
636
636
|
} catch (error) {
|