Commit c49c9dd
authored
Fix: Calendar timing fixes and security improvements (#87)
* fix: Calendar timing fixes and security improvements
- Fix calendar boundary refresh to enable real-time sensor updates
- Remove blocking coordinator refresh at boundary times
- Add URL sanitization to prevent token exposure in logs
- Add HTML escaping for user-provided display content
- Improve exception handling specificity
- Add JWT parsing documentation
Fixes timing issues where occupancy sensors updated at refresh times
instead of exact checkin/checkout boundaries. Also implements security
best practices from comprehensive audit.
* Fix: Remove redundant re module import
Addresses GitHub Advanced Security feedback by removing the redundant 're' module import inside _sanitize_url_for_log() method. The module is already imported at the top of the file (line 8), so the local import at line 592 was unnecessary.1 parent 51e594f commit c49c9dd
File tree
3 files changed
+25
-11
lines changed- custom_components/vacasa
3 files changed
+25
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
448 | 451 | | |
449 | 452 | | |
450 | 453 | | |
| |||
581 | 584 | | |
582 | 585 | | |
583 | 586 | | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
584 | 595 | | |
585 | 596 | | |
586 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
404 | 400 | | |
405 | 401 | | |
406 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | | - | |
| 1020 | + | |
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1026 | 1033 | | |
1027 | 1034 | | |
1028 | 1035 | | |
| |||
0 commit comments