homebridge-melcloud-control 4.0.0-beta.327 → 4.0.0-beta.328
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/melcloud.js +0 -3
- package/src/melcloudhometoken.js +1 -1
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.328",
|
|
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
|
@@ -282,9 +282,7 @@ class MelCloud extends EventEmitter {
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
async connectToMelCloudHome() {
|
|
285
|
-
let browser;
|
|
286
285
|
try {
|
|
287
|
-
|
|
288
286
|
const melCloudHomeToken = new MelCloudHomeToken({
|
|
289
287
|
user: this.user,
|
|
290
288
|
passwd: this.passwd,
|
|
@@ -303,7 +301,6 @@ class MelCloud extends EventEmitter {
|
|
|
303
301
|
|
|
304
302
|
return accountInfo
|
|
305
303
|
} catch (error) {
|
|
306
|
-
if (browser) await browser.close().catch(() => { });
|
|
307
304
|
throw error;
|
|
308
305
|
}
|
|
309
306
|
}
|
package/src/melcloudhometoken.js
CHANGED
|
@@ -144,7 +144,7 @@ class MelCloudHomeToken extends EventEmitter {
|
|
|
144
144
|
maxRedirects: 0,
|
|
145
145
|
validateStatus: status => [200, 302, 400].includes(status),
|
|
146
146
|
});
|
|
147
|
-
|
|
147
|
+
if (this.logWarn) this.emit('warn', `Cookie returned from login: ${cookies}`);
|
|
148
148
|
const cookie = response.headers['set-cookie'];
|
|
149
149
|
if (cookie) {
|
|
150
150
|
if (this.logWarn) this.emit('warn', `Cookie returned from login: ${cookie}`);
|