homebridge-melcloud-control 2.5.0-beta.20 → 2.5.0-beta.21

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.
@@ -64,6 +64,7 @@
64
64
 
65
65
  const accountConfigured = pluginConfig[0].accounts[i].name && pluginConfig[0].accounts[i].user && pluginConfig[0].accounts[i].passwd && pluginConfig[0].accounts[i].language;
66
66
  const setButtonState = accountConfigured ? document.getElementById('logIn').removeAttribute('disabled') : document.getElementById('logIn').setAttribute('disabled');
67
+ document.getElementById('configButton').setAttribute('disabled');
67
68
  await homebridge.updatePluginConfig(pluginConfig);
68
69
  this.deviceIndex = i;
69
70
  });
@@ -131,8 +132,9 @@
131
132
  };
132
133
 
133
134
  const devicesCount = devices.length;
134
- document.getElementById('info').innerHTML = `${info}, found ${devicesCount} ${devicesCount !== 1 ? 'devices' : 'device'}. Now You can start to configure it.`;
135
+ document.getElementById('info').innerHTML = `Success, found ${devicesCount} ${devicesCount !== 1 ? 'devices' : 'device'}. Now You can start to configure it.`;
135
136
  document.getElementById('info').style.color = 'green';
137
+ document.getElementById('configButton').removeAttribute('disabled');
136
138
  await homebridge.updatePluginConfig(pluginConfig);
137
139
  await homebridge.savePluginConfig(pluginConfig);
138
140
  break;
@@ -31,7 +31,7 @@ class PluginUiServer extends HomebridgePluginUiServer {
31
31
  const contextKey = await melCloud.connect();
32
32
  const devices = await melCloud.chackDevicesList(contextKey);
33
33
  return data = {
34
- info: 'Success!',
34
+ info: '',
35
35
  status: 0,
36
36
  data: devices
37
37
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "2.5.0-beta.20",
4
+ "version": "2.5.0-beta.21",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",