homebridge-melcloud-control 4.0.0-beta.342 → 4.0.0-beta.345

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.342",
4
+ "version": "4.0.0-beta.345",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -110,7 +110,7 @@ class MelCloudHomeToken extends EventEmitter {
110
110
  const redirectUrl = location.startsWith('http') ? location : new URL(location, url).toString();
111
111
 
112
112
  // Przy POST zachowujemy body i headers
113
- return axiosRequestWithRedirects(redirectUrl, options, body, redirectCount + 1);
113
+ return this.axiosRequestWithRedirects(redirectUrl, options, body, redirectCount + 1);
114
114
  }
115
115
 
116
116
  // Zwracamy odpowiedź jako string
@@ -136,7 +136,7 @@ class MelCloudHomeToken extends EventEmitter {
136
136
  code_verifier: codeVerifier,
137
137
  }).toString();
138
138
 
139
- const response = await axiosRequestWithRedirects(TOKEN_ENDPOINT, {
139
+ const response = await this.axiosRequestWithRedirects(TOKEN_ENDPOINT, {
140
140
  method: 'POST',
141
141
  headers: {
142
142
  'Content-Type': 'application/x-www-form-urlencoded',