Skip to content

cs_nightlight.py: Handle typed user input into the night light module (manual schedule) - fixes #12818 #12826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rlatosky
Copy link

@rlatosky rlatosky commented Apr 9, 2025

This PR fixes #12818

The code allows the manually scheduled times in the night light module to be specified through typed user input in addition to clicking the +/- buttons.

The hours and minutes are checked to make sure they follow the guidelines of the 15 minute adjustments and if hours and/or minutes go above 24 and 60, respectively. In the videos, if the user types in any minutes not divisible by 15, it defaults to zero.

Here are two videos where this PR is applied and the time format is set to AM/PM and 24-hr, respectively:
AM/PM:

cs_nightlight_fix_AMPM.mp4

24-hr:

cs_nightlight_fix_24hr.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't manually type in schedule for Night Light
1 participant