homebridge-melcloud-control 4.0.0-beta.172 → 4.0.0-beta.173
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 -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.173",
|
|
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
|
@@ -242,6 +242,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
242
242
|
return true;
|
|
243
243
|
case "melcloudhome":
|
|
244
244
|
const axiosInstancePut = axios.create({
|
|
245
|
+
method: 'PUT',
|
|
245
246
|
baseURL: ApiUrlsHome.BaseURL,
|
|
246
247
|
timeout: 25000,
|
|
247
248
|
headers: {
|
|
@@ -284,7 +285,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
284
285
|
this.emit('warn', JSON.stringify(data, null, 2));
|
|
285
286
|
|
|
286
287
|
const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);
|
|
287
|
-
await axiosInstancePut
|
|
288
|
+
await axiosInstancePut(path, data);
|
|
288
289
|
return true;
|
|
289
290
|
default:
|
|
290
291
|
return;
|