homebridge-melcloud-control 4.0.0-beta.26 → 4.0.0-beta.27
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 +5 -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.27",
|
|
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
|
@@ -280,6 +280,7 @@ class MelCloud extends EventEmitter {
|
|
|
280
280
|
|
|
281
281
|
// Wypisz adres po przekierowaniu
|
|
282
282
|
const currentUrl = page.url();
|
|
283
|
+
|
|
283
284
|
// Zamknij przeglądarkę
|
|
284
285
|
await browser.close();
|
|
285
286
|
|
|
@@ -290,7 +291,10 @@ class MelCloud extends EventEmitter {
|
|
|
290
291
|
|
|
291
292
|
// Wyślij POST za pomocą axios
|
|
292
293
|
this.emit('warn', 'Sending login request via axios...');
|
|
293
|
-
const response = await axios.post(currentUrl,
|
|
294
|
+
const response = await axios.post(currentUrl, {
|
|
295
|
+
data: form,
|
|
296
|
+
timeout: 10000
|
|
297
|
+
});
|
|
294
298
|
this.emit('warn', `Login response: ${JSON.stringify(response)}`);
|
|
295
299
|
|
|
296
300
|
this.emit('warn', `Login request status: ${response}`);
|