homebridge-melcloud-control 4.0.0-beta.36 → 4.0.0-beta.37
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.
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
document.getElementById('user').value = acc.user || '';
|
|
129
129
|
document.getElementById('passwd').value = acc.passwd || '';
|
|
130
130
|
document.getElementById('language').value = acc.language || '';
|
|
131
|
-
document.getElementById('accountType').value = acc.
|
|
132
|
-
document.getElementById('logIn').disabled = !(acc.name && acc.user && acc.passwd && acc.language && acc.
|
|
131
|
+
document.getElementById('accountType').value = acc.displayType || '';
|
|
132
|
+
document.getElementById('logIn').disabled = !(acc.name && acc.user && acc.passwd && acc.language && acc.displayType);
|
|
133
133
|
this.deviceIndex = i;
|
|
134
134
|
});
|
|
135
135
|
|
|
@@ -144,9 +144,9 @@
|
|
|
144
144
|
acc.user = document.querySelector('#user').value;
|
|
145
145
|
acc.passwd = document.querySelector('#passwd').value;
|
|
146
146
|
acc.language = document.querySelector('#language').value;
|
|
147
|
-
acc.
|
|
147
|
+
acc.displayType = document.querySelector('#accountType').value;
|
|
148
148
|
|
|
149
|
-
document.getElementById('logIn').disabled = !(acc.name && acc.user && acc.passwd && acc.languaged && acc.
|
|
149
|
+
document.getElementById('logIn').disabled = !(acc.name && acc.user && acc.passwd && acc.languaged && acc.displayType);
|
|
150
150
|
|
|
151
151
|
await homebridge.updatePluginConfig(pluginConfig);
|
|
152
152
|
await homebridge.savePluginConfig(pluginConfig);
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
|
|
204
204
|
try {
|
|
205
205
|
const acc = pluginConfig[0].accounts[this.deviceIndex];
|
|
206
|
-
const payload = { accountName: acc.name, user: acc.user, passwd: acc.passwd, language: acc.language, accountType: acc.
|
|
206
|
+
const payload = { accountName: acc.name, user: acc.user, passwd: acc.passwd, language: acc.language, accountType: acc.displayType };
|
|
207
207
|
const devicesInMelCloud = await homebridge.request('/connect', payload);
|
|
208
208
|
|
|
209
209
|
// Initialize devices arrays
|
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.
|
|
4
|
+
"version": "4.0.0-beta.37",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|