Commit e0be518
committed
UI tweaks, deep sleep logic, and assets update
Bump frontend asset and version, refine UI, and improve deep sleep/update behavior.
- Updated built frontend asset reference and app version (index.html).
- Refined header/action buttons: added icon-only variants, AI assistant icon, separate copy buttons for full YAML and lambda (C++), OEPL/ODP copy buttons, fullscreen/import icons, and updated Dark Mode label.
- Increased deep_sleep run_duration from 30s to 120s to allow more time for OTA on boot (yaml_generator.js).
- Added conditional component.update before deep sleep: only refresh display when outside configured no-refresh/sleep window. Now reads noRefreshStartHour/noRefreshEndHour (falling back to sleepStartHour/sleepEndHour) and treats both sleepEnabled and deepSleepEnabled in multiple truthy formats. Also adjusted time-check variables accordingly.
- UI logic (device_settings.js): show sleep settings row when either regular sleep or deep sleep mode is active.
These changes improve OTA reliability, avoid unwanted refreshes during configured sleep windows, and enhance the code panel and copy UX.1 parent 01c7203 commit e0be518
File tree
3 files changed
+68
-17
lines changed- custom_components/esphome_designer/frontend
- dist
- js
- io/adapters
- ui
3 files changed
+68
-17
lines changedLines changed: 27 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
210 | 220 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
215 | 232 | | |
216 | 233 | | |
217 | 234 | | |
| |||
850 | 867 | | |
851 | 868 | | |
852 | 869 | | |
853 | | - | |
| 870 | + | |
854 | 871 | | |
855 | 872 | | |
856 | 873 | | |
| |||
Lines changed: 40 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
285 | 316 | | |
286 | 317 | | |
287 | 318 | | |
| |||
312 | 343 | | |
313 | 344 | | |
314 | 345 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
318 | 352 | | |
319 | 353 | | |
320 | 354 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | | - | |
| 874 | + | |
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| |||
0 commit comments