homebridge-melcloud-control 4.0.0-beta.127 → 4.0.0-beta.128

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.127",
4
+ "version": "4.0.0-beta.128",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -280,6 +280,7 @@ class MelCloudAta extends EventEmitter {
280
280
  try {
281
281
  const axiosInstancePut = axios.create({
282
282
  method: 'PUT',
283
+ timeout: 25000,
283
284
  baseURL: ApiUrlsHome.BaseURL,
284
285
  headers: {
285
286
  'Accept': '*/*',
@@ -293,8 +294,7 @@ class MelCloudAta extends EventEmitter {
293
294
  'Sec-Fetch-Mode': 'cors',
294
295
  'Sec-Fetch-Site': 'same-origin',
295
296
  'X-CSRF': '1'
296
- },
297
- ...axiosDefaults
297
+ }
298
298
  });
299
299
 
300
300
  //set target temp based on display mode and operation mode
@@ -333,7 +333,7 @@ class MelCloudAta extends EventEmitter {
333
333
 
334
334
  const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);
335
335
  const response = await axiosInstancePut(path, payload);
336
- this.emit('warn', JSON.stringify(response, null, 2));
336
+ this.emit('warn', JSON.stringify(response, null, 2));
337
337
  this.emit('deviceState', deviceData);
338
338
  return true;
339
339
  } catch (error) {