homebridge-melcloud-control 4.0.0-beta.372 → 4.0.0-beta.373

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.372",
4
+ "version": "4.0.0-beta.373",
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
@@ -28,10 +28,6 @@ class MelCloud extends EventEmitter {
28
28
  this.contextKey = '';
29
29
  this.functions = new Functions();
30
30
 
31
- this.axiosInstance = axios.create({
32
- baseURL: 'https://app.melcloud.com/Mitsubishi.Wifi.Client',
33
- headers: { 'User-Agent': 'MonitorAndControl.App.Mobile/35 CFNetwork/3860.100.1 Darwin/25.0.0' }
34
- });
35
31
  this.tokens = null;
36
32
 
37
33
  this.loginData = {
@@ -152,7 +152,7 @@ class MelCloudHomeToken extends EventEmitter {
152
152
  'Origin': 'https://live-melcloudhome.auth.eu-west-1.amazoncognito.com',
153
153
  'Referer': url,
154
154
  },
155
- maxRedirects: 0,
155
+ maxRedirects: 10,
156
156
  validateStatus: status => [200, 302, 400].includes(status),
157
157
  });
158
158