Repository navigation
Wake: hold after the alarm rang; move earlier for an early calendar event - #116
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two wake-up problems seen on a real morning.
The alarm rang, then the wake moved back into the night. The 6:00 alarm rang. The phone's "next alarm" then flipped between the snooze (6:10, 6:45, 6:55) and an 8:30 backup alarm. The wake followed the 8:30 alarm, and when the alarms were dismissed it went back to the planned 9:30. Getting up at 6:46 was then read as a night-time trip, and the side kept running.
test_a_new_alarm_after_the_first_rang_reopens_the_finished_night). A backup alarm already seen while in bed doesn't reopen the night.An early calendar event didn't move the wake. The calendar's early start (from the phone or an HA calendar) only fed a "Wake up earlier tonight" button on Tonight. Now the warm wake moves to 45 minutes before the event on its own (setting: Your nights → "Wake earlier for early events", on by default):
wake_from_calendarandwake_calendar_cleared.Also covered:
Tests:
test_wake_morning.py(13). The two alarm tests fail on the old code.test_snoozing_the_alarm_holds_the_wakenow expects a backup alarm an hour later not to move the wake. About 380 related engine and simulation tests pass locally.