homebridge-melcloud-control 4.0.0-beta.325 → 4.0.0-beta.327

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.325",
4
+ "version": "4.0.0-beta.327",
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
@@ -299,7 +299,7 @@ class MelCloud extends EventEmitter {
299
299
  const cookies = await melCloudHomeToken.loginToMelCloudHome(data.url);
300
300
 
301
301
  const accountInfo = { ContextKey: cookies, UseFahrenheit: false };
302
- this.contextKey = contextKey;
302
+ this.contextKey = cookies;
303
303
 
304
304
  return accountInfo
305
305
  } catch (error) {
@@ -147,7 +147,7 @@ class MelCloudHomeToken extends EventEmitter {
147
147
 
148
148
  const cookie = response.headers['set-cookie'];
149
149
  if (cookie) {
150
- if (this.logWarn) this.emit('warn', `Cookie returned from login. Response headers: ${JSON.stringify(response.headers)}`);
150
+ if (this.logWarn) this.emit('warn', `Cookie returned from login: ${cookie}`);
151
151
  return cookie;
152
152
  }
153
153