mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-10-05 06:45:09 +00:00
fix(display): schedule windows end at the end time; on-demand ending in off hours blanks at once (#714)
Schedule and dim windows are half-open [start, end): on from the start time, off at exactly the end time, whatever second the check runs. An on-demand session that ends in scheduled-off hours (expiry or stop) clears the once-a-minute schedule gate, so the panel blanks within about a second. Golden: schedule; two test_display_pending_changes.py tests now say end_time 23:00. Merged with #712 and #713: with all three in, docs/RUN_LOOP_REDESIGN.md's 'may be wrong' list is empty, so that section now records that all six items are fixed and by which PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -141,7 +141,8 @@ def scenario_schedule(h: RunLoopHarness):
|
||||
"end_time": "23:01", "dim_brightness": 30}
|
||||
h.add_plugin(FakePlugin("clock", ["clock"], duration=20))
|
||||
h.add_plugin(FakePlugin("weather", ["weather"], duration=20))
|
||||
# An on-demand request during scheduled downtime overrides it.
|
||||
# An on-demand request during scheduled downtime overrides it; when it
|
||||
# expires the panel blanks at once, not at the next minute.
|
||||
h.on_demand_request(170, "s1", plugin_id="weather", duration=20)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user