homebridge-melcloud-control 4.1.2-beta.49 → 4.1.2-beta.50
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.
|
@@ -117,16 +117,16 @@
|
|
|
117
117
|
container.style.alignItems = 'center';
|
|
118
118
|
|
|
119
119
|
const formElements = {
|
|
120
|
+
accountName: document.getElementById('accountName'),
|
|
121
|
+
info: document.getElementById('info'),
|
|
122
|
+
info1: document.getElementById('info1'),
|
|
123
|
+
info2: document.getElementById('info2'),
|
|
120
124
|
name: document.getElementById('name'),
|
|
121
125
|
user: document.getElementById('user'),
|
|
122
126
|
passwd: document.getElementById('passwd'),
|
|
123
127
|
language: document.getElementById('language'),
|
|
124
128
|
accountType: document.getElementById('accountType'),
|
|
125
|
-
logIn: document.getElementById('logIn')
|
|
126
|
-
accountName: document.getElementById('accountName'),
|
|
127
|
-
info: document.getElementById('info'),
|
|
128
|
-
info1: document.getElementById('info1'),
|
|
129
|
-
info2: document.getElementById('info2')
|
|
129
|
+
logIn: document.getElementById('logIn')
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
// Tworzenie przycisków
|
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
container.appendChild(button);
|
|
141
141
|
|
|
142
142
|
button.addEventListener('click', async () => {
|
|
143
|
+
this.account = account;
|
|
143
144
|
this.accountIndex = i;
|
|
144
145
|
|
|
145
146
|
// Zmieniamy klasę wszystkich przycisków
|
|
@@ -236,7 +237,7 @@
|
|
|
236
237
|
homebridge.showSpinner();
|
|
237
238
|
|
|
238
239
|
try {
|
|
239
|
-
const account =
|
|
240
|
+
const account = this.account;
|
|
240
241
|
const response = await homebridge.request('/connect', account);
|
|
241
242
|
if (!response.State) {
|
|
242
243
|
homebridge.hideSpinner();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.2-beta.
|
|
4
|
+
"version": "4.1.2-beta.50",
|
|
5
5
|
"description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|