Skip to content

Feature/user chore pfeat(buttons): add per-user Pause/Resume chore buttonsause buttons#197

Closed
amandaworkman1988 wants to merge 3 commits into
ccpk1:mainfrom
amandaworkman1988:feature/user-chore-pause-buttons
Closed

Feature/user chore pfeat(buttons): add per-user Pause/Resume chore buttonsause buttons#197
amandaworkman1988 wants to merge 3 commits into
ccpk1:mainfrom
amandaworkman1988:feature/user-chore-pause-buttons

Conversation

@amandaworkman1988

Copy link
Copy Markdown

What this adds

Two button entities per user — "Pause Chores" and "Resume Chores" — for quick sick-day style control from any dashboard or the admin view.

While a user is paused, no overdue/missed stats accumulate and rotation chores advance past them (identical to the existing pause_user_chores service). Pressing Resume clears the pause.

How it works

  • New UserChoresPauseButton class in button.py (one Pause + one Resume per user, created in async_setup_entry).
  • async_press() calls the existing ChoreManager.set_user_chores_paused(assignee_id, paused=...). No new pause logic, no storage changes, no migration.
  • Reuses existing device/translation/icon patterns.

Files changed

  • const.py (button UID suffixes, translation keys, icons)
  • button.py (UserChoresPauseButton + setup wiring)
  • translations/en.json (button names)
  • docs/user-chore-pause-buttons.md

Notes

  • Momentary Pause/Resume buttons (the integration has no switch platform; a single toggle would need a switch platform).
  • Buttons don't gate on approver auth; pausing is non-destructive and already exposed via the service.

Verification

Syntax-checked all files and confirmed the symbols used (coordinator.chore_manager, the new const keys) exist. The full Home Assistant test suite wasn't runnable in the authoring environment — please let CI run before merge.

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.

1 participant