Commit 0471c31
Clear alarm state when the alarm list is empty (upstream PR TKnpl#22)
When the v2 alarms endpoint returns success but no active (non-archived)
alarm, reset the 'alarm' state to false and clear the internal tracking so
a previously triggered alarm does not stay stuck. Also warn when the API
responds with success=false.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3e3c9ad commit 0471c31
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
368 | 378 | | |
369 | 379 | | |
370 | 380 | | |
| |||
0 commit comments