Conversation
…ranslations Agent-Logs-Url: https://github.com/gensyn/task_tracker/sessions/5f62ad2c-8058-4e20-8c55-6c782e24a1a4 Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gensyn/task_tracker/sessions/5f62ad2c-8058-4e20-8c55-6c782e24a1a4 Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
|
@copilot While this solution probably works, this is a very minimalistic approach and not very user friendly. I would prefer a solution that supports the following for
With this functionality, |
- 3 repeat_every sub-types: every N weeks on weekday, every Nth day of month, every Nth weekday of month - Multi-step config_flow and options_flow (name+mode → mode-specific steps → sub-type details for repeat_every) - Calendar-based due date calculations in sensor.py - validate_options handles both modes with clean defaults - Migration 1.4→1.5 backfills new repeat_every fields - MINOR_VERSION bumped to 5 - strings.json, en.json, de.json updated for all new steps/selectors - Unit tests fully updated (168 pass) Agent-Logs-Url: https://github.com/gensyn/task_tracker/sessions/6e72bf5f-d9b6-4f98-8c8a-ec5f7f62d5f7 Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
…lendar steps Agent-Logs-Url: https://github.com/gensyn/task_tracker/sessions/6e72bf5f-d9b6-4f98-8c8a-ec5f7f62d5f7 Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Done in commit 11373ab. The Step 1 – name + repeat mode (repeat_after or repeat_every) For
For
The coordinator |
Agent-Logs-Url: https://github.com/gensyn/task_tracker/sessions/319a4bf7-b35b-4aa9-8e76-04b86681e263 Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gensyn/task_tracker/sessions/319a4bf7-b35b-4aa9-8e76-04b86681e263 Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Storein coordinator)repeat_mode,repeat_every_type,repeat_weekday,repeat_weeks_interval,repeat_month_day,repeat_nth_occurrence) intoTaskTrackerCoordinator.__init__calculate_due_date,_calculate_repeat_every_due_date,_weekday_number,_calc_next_weekday,_calc_next_day_of_month,_get_nth_weekday_of_month,_calc_next_weekday_of_month) fromsensor.pytocoordinator.pycoordinator.async_mark_as_doneto callself._calculate_repeat_every_due_date()instead of readingself.due_date; removeself.due_datefieldsensor.py: remove calculation methods, remove repeat_* constructor params, read schedule attrs from coordinator, callcoordinator.calculate_due_date()__init__.pyto pass schedule options to coordinator constructormake_sensor, remove two stale tests aboutcoordinator.due_date, redirect calculation-method tests tosensor.coordinator, use instance calls for static methods