homebridge-melcloud-control 4.0.0-beta.418 → 4.0.0-beta.419

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/melcloud.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.418",
4
+ "version": "4.0.0-beta.419",
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
@@ -138,6 +138,7 @@ class MelCloud extends EventEmitter {
138
138
 
139
139
  try {
140
140
  const axiosInstanceLogin = axios.create({
141
+ method: 'POST',
141
142
  baseURL: ApiUrls.BaseURL,
142
143
  timeout: 15000,
143
144
  });
@@ -152,7 +153,7 @@ class MelCloud extends EventEmitter {
152
153
  Persist: true
153
154
  };
154
155
 
155
- const accountData = await axiosInstanceLogin.post(ApiUrls.ClientLogin, { data: loginData });
156
+ const accountData = await axiosInstanceLogin(ApiUrls.ClientLogin, { data: loginData });
156
157
  const account = accountData.data;
157
158
  const accountInfo = account.LoginData;
158
159
  const contextKey = accountInfo?.ContextKey;