homebridge-melcloud-control 4.0.0-beta.553 → 4.0.0-beta.554
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 +1 -5
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.554",
|
|
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
|
@@ -413,7 +413,6 @@ class MelCloud extends EventEmitter {
|
|
|
413
413
|
const cookies = await page.browserContext().cookies();
|
|
414
414
|
c1 = cookies.find(c => c.name === '__Secure-monitorandcontrolC1')?.value || c1;
|
|
415
415
|
c2 = cookies.find(c => c.name === '__Secure-monitorandcontrolC2')?.value || c2;
|
|
416
|
-
|
|
417
416
|
if (!c1 || !c2) await new Promise(r => setTimeout(r, 500));
|
|
418
417
|
}
|
|
419
418
|
|
|
@@ -428,10 +427,7 @@ class MelCloud extends EventEmitter {
|
|
|
428
427
|
`__Secure-monitorandcontrolC1=${c1}`,
|
|
429
428
|
`__Secure-monitorandcontrolC2=${c2}`
|
|
430
429
|
].join('; ');
|
|
431
|
-
|
|
432
|
-
const cookies1 = await page.browserContext().cookies()
|
|
433
|
-
this.emit('warn', `cookies ${JSON.stringify(cookies1, null, 2)}`);
|
|
434
|
-
this.contextKey = cookies1;
|
|
430
|
+
this.contextKey = contextKey;
|
|
435
431
|
|
|
436
432
|
accountInfo.State = true;
|
|
437
433
|
accountInfo.Info = 'Connect to MELCloud Home Success';
|