homebridge-melcloud-control 3.0.1-beta.0 → 3.0.1-beta.2

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