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 CHANGED
@@ -113,10 +113,6 @@ class MelCloudPlatform {
113
113
  const contextKey = accountInfo.ContextKey;
114
114
  const useFahrenheit = accountInfo.UseFahrenheit;
115
115
 
116
- if (!contextKey) {
117
- return;
118
- }
119
-
120
116
  //check devices list
121
117
  let devicesInMelcloud;
122
118
  try {
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.493",
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 = LoginData.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 after login';
413
+ accountInfo.Info = 'Cookies C1/C2 missing';
414
414
  return accountInfo;
415
415
  }
416
416