Skip to content

feat(todo): native per-child to-do list platform (FEAT-8)#602

Merged
tempus2016 merged 1 commit into
mainfrom
feat/todo-platform
Jun 26, 2026
Merged

feat(todo): native per-child to-do list platform (FEAT-8)#602
tempus2016 merged 1 commit into
mainfrom
feat/todo-platform

Conversation

@tempus2016

Copy link
Copy Markdown
Owner

FEAT-8 — native todo platform

Each child gets a todo.taskmate_<name> entity listing the chores they still need to do today; checking an item off completes the chore. This lets the native HA to-do card and voice assistants drive TaskMate without the custom cards.

Key addition: a shared definition of "due chores"

Adds coordinator.get_due_chores_for_child() — the single backend definition of a child's outstanding chores: assigned_to membership + specific_days due_days + a completed-today cap, layered on top of is_chore_available_for_child. Previously this logic only lived (duplicated) in the cards' JS. Reusable by cards/automations and unit-tested in isolation.

Registers Platform.TODO (per-child, dynamic add as children appear) + conftest stubs.

Testing

  • 6 helper tests (assigned/everyone split, due_days filter, daily-limit cap, other-child/bonus-subtask ignored, availability gate) + 4 entity tests (item mapping, empty when child gone, check-off completes, uncheck no-op).
  • Live on ha-dev: todo.taskmate_vaiha lists her 4 real chores via todo.get_items; HA-native todo.update_item check-off completed "Make bed" (list 4→3); restored cleanly.

From AUDIT_REPORT.md §5 (FEAT-8).

Each child gets a todo.taskmate_<name> entity listing the chores they
still need to do today; checking an item off completes the chore. Lets
the native HA to-do card and voice assistants drive TaskMate without the
custom cards.

Adds a shared coordinator helper get_due_chores_for_child() — the single
backend definition of a child's outstanding chores (assigned_to +
specific_days due_days + completed-today cap on top of
is_chore_available_for_child), reusable by cards/automations and tested
in isolation.

Registers Platform.TODO (dynamic per-child add), conftest stubs.

Tests: 6 helper cases (assigned/everyone, due_days, daily-limit,
other-child, bonus-subtask, availability) + 4 entity cases. Verified
live on ha-dev: todo.taskmate_vaiha lists her 4 real chores; native
todo.update_item check-off completed 'Make bed' (4->3); restored.
@github-actions github-actions Bot added backend Python integration code tests Test suite labels Jun 26, 2026
@tempus2016 tempus2016 merged commit eb0f6d5 into main Jun 26, 2026
10 checks passed
@tempus2016 tempus2016 deleted the feat/todo-platform branch June 26, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Python integration code tests Test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant