homebridge-roborock-vacuum 1.3.0 → 1.3.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.
@@ -16,6 +16,7 @@
16
16
  Password
17
17
  <input id="password" type="password" placeholder="Password" />
18
18
  </label>
19
+ <p class="help">Use password login to test credentials and save a token.</p>
19
20
  <label>
20
21
  Region
21
22
  <select id="base-url">
@@ -34,7 +35,7 @@
34
35
  Enable debug logging
35
36
  </label>
36
37
  <div class="actions">
37
- <button id="login" class="secondary">Login</button>
38
+ <button id="login" class="secondary">Password Login</button>
38
39
  <button id="logout" class="secondary hidden">Logout</button>
39
40
  </div>
40
41
  </section>
@@ -200,6 +200,8 @@ function setLoggedInState(isLoggedIn) {
200
200
  elements.twoFactorSection.classList.toggle('hidden', isLoggedIn);
201
201
  elements.email.readOnly = isLoggedIn;
202
202
  elements.email.parentElement.classList.toggle('readonly', isLoggedIn);
203
+ elements.baseUrl.disabled = isLoggedIn;
204
+ elements.baseUrl.parentElement.classList.toggle('readonly', isLoggedIn);
203
205
  }
204
206
 
205
207
  async function updatePluginConfig(patch) {
@@ -102,6 +102,11 @@ input::placeholder {
102
102
  opacity: 0.75;
103
103
  }
104
104
 
105
+ .readonly select {
106
+ background: #111827;
107
+ opacity: 0.75;
108
+ }
109
+
105
110
  .actions {
106
111
  display: flex;
107
112
  gap: 12px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-roborock-vacuum",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Roborock Vacuum Cleaner - plugin for Homebridge.",
5
5
  "license": "MIT",
6
6
  "keywords": [