homebridge-melcloud-control 4.0.0-beta.493 → 4.0.0-beta.494
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/index.js +0 -4
- package/package.json +1 -1
- package/src/melcloud.js +2 -2
package/index.js
CHANGED
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.494",
|
|
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
|
@@ -160,7 +160,7 @@ class MelCloud extends EventEmitter {
|
|
|
160
160
|
const accountData = await axiosInstance(ApiUrls.ClientLogin, { data: data });
|
|
161
161
|
const account = accountData.data;
|
|
162
162
|
const loginData = account.LoginData ?? [];
|
|
163
|
-
const contextKey =
|
|
163
|
+
const contextKey = loginData.ContextKey;
|
|
164
164
|
this.contextKey = contextKey;
|
|
165
165
|
|
|
166
166
|
const debugData = {
|
|
@@ -410,7 +410,7 @@ class MelCloud extends EventEmitter {
|
|
|
410
410
|
if (!c1 || !c2) {
|
|
411
411
|
if (this.logWarn) this.emit('warn', 'Cookies C1/C2 missing after login');
|
|
412
412
|
accountInfo.State = false;
|
|
413
|
-
accountInfo.Info = 'Cookies C1/C2 missing
|
|
413
|
+
accountInfo.Info = 'Cookies C1/C2 missing';
|
|
414
414
|
return accountInfo;
|
|
415
415
|
}
|
|
416
416
|
|