homebridge-melcloud-control 4.1.2-beta.64 → 4.1.2-beta.65
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/melcloudata.js +2 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.2-beta.
|
|
4
|
+
"version": "4.1.2-beta.65",
|
|
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/melcloudata.js
CHANGED
|
@@ -23,7 +23,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
23
23
|
|
|
24
24
|
//set default values
|
|
25
25
|
this.deviceData = {};
|
|
26
|
-
this.headers = {};
|
|
27
26
|
|
|
28
27
|
//lock flags
|
|
29
28
|
this.locks = {
|
|
@@ -60,7 +59,6 @@ class MelCloudAta extends EventEmitter {
|
|
|
60
59
|
return null;
|
|
61
60
|
}
|
|
62
61
|
const deviceData = devicesData.find(device => device.DeviceID === this.deviceId);
|
|
63
|
-
this.headers = deviceData.Headers;
|
|
64
62
|
|
|
65
63
|
if (this.accountType === 'melcloudhome') {
|
|
66
64
|
deviceData.SerialNumber = deviceData.DeviceID || '4.0.0';
|
|
@@ -150,7 +148,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
150
148
|
method: 'POST',
|
|
151
149
|
baseURL: ApiUrls.BaseURL,
|
|
152
150
|
timeout: 10000,
|
|
153
|
-
headers:
|
|
151
|
+
headers: deviceData.Headers,
|
|
154
152
|
withCredentials: true
|
|
155
153
|
});
|
|
156
154
|
|
|
@@ -189,7 +187,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
189
187
|
method: 'PUT',
|
|
190
188
|
baseURL: ApiUrlsHome.BaseURL,
|
|
191
189
|
timeout: 10000,
|
|
192
|
-
headers:
|
|
190
|
+
headers: deviceData.Headers,
|
|
193
191
|
withCredentials: true
|
|
194
192
|
});
|
|
195
193
|
|