homebridge-melcloud-control 4.0.0-beta.134 → 4.0.0-beta.136
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 -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.136",
|
|
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
|
@@ -70,8 +70,8 @@ class MelCloud extends EventEmitter {
|
|
|
70
70
|
const axiosInstanceGet = axios.create({
|
|
71
71
|
method: 'GET',
|
|
72
72
|
baseURL: ApiUrls.BaseURL,
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
timeout: 15000,
|
|
74
|
+
headers: { 'X-MitsContextKey': contextKey }
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
if (this.logDebug) this.emit('debug', `Scanning for devices`);
|
|
@@ -131,7 +131,7 @@ class MelCloud extends EventEmitter {
|
|
|
131
131
|
const axiosInstanceLogin = axios.create({
|
|
132
132
|
method: 'POST',
|
|
133
133
|
baseURL: ApiUrls.BaseURL,
|
|
134
|
-
|
|
134
|
+
timeout: 15000,
|
|
135
135
|
});
|
|
136
136
|
|
|
137
137
|
const accountData = await axiosInstanceLogin(ApiUrls.ClientLogin, { data: this.loginData });
|
|
@@ -159,11 +159,11 @@ class MelCloud extends EventEmitter {
|
|
|
159
159
|
this.axiosInstancePost = axios.create({
|
|
160
160
|
method: 'POST',
|
|
161
161
|
baseURL: ApiUrls.BaseURL,
|
|
162
|
+
timeout: 15000,
|
|
162
163
|
headers: {
|
|
163
164
|
'X-MitsContextKey': contextKey,
|
|
164
165
|
'content-type': 'application/json'
|
|
165
|
-
}
|
|
166
|
-
...this.axiosDefaults
|
|
166
|
+
}
|
|
167
167
|
});
|
|
168
168
|
|
|
169
169
|
await this.functions.saveData(this.accountFile, accountInfo);
|