homebridge-melcloud-control 3.0.1-beta.1 → 3.0.1-beta.3
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.
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
document.getElementById('language').value = pluginConfig[0].accounts[i].language || '';
|
|
91
91
|
|
|
92
92
|
const accountConfigured = pluginConfig[0].accounts[i].name && pluginConfig[0].accounts[i].user && pluginConfig[0].accounts[i].passwd && pluginConfig[0].accounts[i].language;
|
|
93
|
-
const
|
|
93
|
+
const button = document.getElementById('logIn');
|
|
94
|
+
const setButtonState = accountConfigured ? button.disabled = false : button.disabled = true;
|
|
94
95
|
|
|
95
96
|
await homebridge.updatePluginConfig(pluginConfig);
|
|
96
97
|
this.deviceIndex = i;
|
|
@@ -109,8 +110,9 @@
|
|
|
109
110
|
pluginConfig[0].accounts[this.deviceIndex].passwd = document.querySelector('#passwd').value;
|
|
110
111
|
pluginConfig[0].accounts[this.deviceIndex].language = document.querySelector('#language').value;
|
|
111
112
|
|
|
112
|
-
const accountConfigured = pluginConfig[0].accounts[
|
|
113
|
-
const
|
|
113
|
+
const accountConfigured = pluginConfig[0].accounts[this.deviceIndex].name && pluginConfig[0].accounts[this.deviceIndex].user && pluginConfig[0].accounts[this.deviceIndex].passwd && pluginConfig[0].accounts[this.deviceIndex].language;
|
|
114
|
+
const button = document.getElementById('logIn');
|
|
115
|
+
const setButtonState = accountConfigured ? button.disabled = false : button.disabled = true;
|
|
114
116
|
|
|
115
117
|
await homebridge.updatePluginConfig(pluginConfig);
|
|
116
118
|
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.1-beta.
|
|
4
|
+
"version": "3.0.1-beta.3",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|