Rename "Todo list offset" to "Due soon" and add due_soon sensor state#22
Draft
Rename "Todo list offset" to "Due soon" and add due_soon sensor state#22
due_soon sensor state#22Conversation
…o v1.3 Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update todo list offset to due soon with new state logic
Rename "Todo list offset" to "Due soon" and add Mar 17, 2026
due_soon sensor state
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.
The
todo_offset_daysconfig option is renamed todue_soon_days, and a newdue_soonsensor state is introduced: a task enters this state when0 < due_in <= due_soon_days(i.e. it is approaching its due date within the configured threshold). Todo list sync behavior is unchanged — the same threshold continues to drive when tasks appear in todo lists.Config & Options
CONF_TODO_OFFSET_DAYS→CONF_DUE_SOON_DAYS("due_soon_days")CONF_TODO_OFFSET_OVERRIDE→CONF_DUE_SOON_OVERRIDE("due_soon_override")State Logic (
sensor.py)New state priority (highest → lowest):
inactive>due>due_soon>doneMigration
todo_offset_days/todo_offset_overridekeys in stored entry optionsasync_migrate_entrycallFrontend
due_soonrenders in orange (#e67e22), between red (due) and green (done)due_sooncount alongside existing statesTranslations
due_soonstate labels and renamed option descriptions🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.