homebridge-melcloud-control 3.9.8-beta.2 → 3.9.8-beta.4
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/homebridge-ui/server.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/melcloud.js +1 -1
package/homebridge-ui/server.js
CHANGED
|
@@ -24,7 +24,7 @@ class PluginUiServer extends HomebridgePluginUiServer {
|
|
|
24
24
|
|
|
25
25
|
try {
|
|
26
26
|
const response = await melCloud.connect();
|
|
27
|
-
const devices = await melCloud.
|
|
27
|
+
const devices = await melCloud.checkDevicesList(response.contextKey);
|
|
28
28
|
return devices;
|
|
29
29
|
} catch (error) {
|
|
30
30
|
throw new Error(`MELCloud error: ${error.message ?? error}.`);
|
package/index.js
CHANGED
|
@@ -105,7 +105,7 @@ class MelCloudPlatform {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
//check devices list
|
|
108
|
-
const devicesInMelcloud = await melCloud.
|
|
108
|
+
const devicesInMelcloud = await melCloud.checkDevicesList(contextKey);
|
|
109
109
|
if (devicesInMelcloud === false) {
|
|
110
110
|
return;
|
|
111
111
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.9.8-beta.
|
|
4
|
+
"version": "3.9.8-beta.4",
|
|
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
|
@@ -113,7 +113,7 @@ class MelCloud extends EventEmitter {
|
|
|
113
113
|
...this.axiosDefaults
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
const accountData = await axiosInstanceLogin(ApiUrls.ClientLogin, this.loginData);
|
|
116
|
+
const accountData = await axiosInstanceLogin(ApiUrls.ClientLogin, { data: this.loginData });
|
|
117
117
|
const account = accountData.data;
|
|
118
118
|
const accountInfo = account.LoginData;
|
|
119
119
|
const contextKey = accountInfo.ContextKey;
|