homebridge-melcloud-control 3.0.0 → 3.0.1-beta.0
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.
|
@@ -83,8 +83,6 @@
|
|
|
83
83
|
const setRemoveAtribute = j === i ? document.getElementById(`button${j}`).setAttribute("class", "btn btn-secondary") : document.getElementById(`button${j}`).setAttribute("class", "btn btn-primary");
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
//const devicesCount = pluginConfig[0].accounts[i].devicesAta.length ?? 0;
|
|
87
|
-
//document.getElementById('info').innerHTML = `MELCloud configured ${devicesCount} ${devicesCount} ${devicesCount !== 1 ? 'devices' : 'device'}.`;
|
|
88
86
|
document.getElementById('accountName').innerHTML = pluginConfig[0].accounts[i].name || '';
|
|
89
87
|
document.getElementById('name').value = pluginConfig[0].accounts[i].name || '';
|
|
90
88
|
document.getElementById('user').value = pluginConfig[0].accounts[i].user || '';
|
|
@@ -92,8 +90,8 @@
|
|
|
92
90
|
document.getElementById('language').value = pluginConfig[0].accounts[i].language || '';
|
|
93
91
|
|
|
94
92
|
const accountConfigured = pluginConfig[0].accounts[i].name && pluginConfig[0].accounts[i].user && pluginConfig[0].accounts[i].passwd && pluginConfig[0].accounts[i].language;
|
|
95
|
-
const setButtonState = accountConfigured ? document.getElementById('logIn').
|
|
96
|
-
|
|
93
|
+
const setButtonState = accountConfigured ? document.getElementById('logIn').disabled = false : document.getElementById('logIn').disabled = true;
|
|
94
|
+
|
|
97
95
|
await homebridge.updatePluginConfig(pluginConfig);
|
|
98
96
|
this.deviceIndex = i;
|
|
99
97
|
});
|
|
@@ -112,7 +110,7 @@
|
|
|
112
110
|
pluginConfig[0].accounts[this.deviceIndex].language = document.querySelector('#language').value;
|
|
113
111
|
|
|
114
112
|
const accountConfigured = pluginConfig[0].accounts[i].name && pluginConfig[0].accounts[i].user && pluginConfig[0].accounts[i].passwd && pluginConfig[0].accounts[i].language;
|
|
115
|
-
const setButtonState = accountConfigured ? document.getElementById('logIn').
|
|
113
|
+
const setButtonState = accountConfigured ? document.getElementById('logIn').disabled = false : document.getElementById('logIn').disabled = true;
|
|
116
114
|
|
|
117
115
|
await homebridge.updatePluginConfig(pluginConfig);
|
|
118
116
|
await homebridge.savePluginConfig(pluginConfig);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.0.0",
|
|
4
|
+
"version": "3.0.1-beta.0",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|