Add bulk update action for todo lists#155922
Conversation
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
4ce0117 to
064de99
Compare
b80c9e5 to
f321525
Compare
joostlek
left a comment
There was a problem hiding this comment.
This PR is changing our entity model. Before we can review this PR there needs to be approval in a discussion in our architecture repository.
https://github.com/home-assistant/architecture/discussions
https://developers.home-assistant.io/docs/core/entity#changing-the-entity-model
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
Thanks, @joostlek. I knew there was a discussion to be had, but it wasn't clear to me where to have it, since this is my first time. Here it is now: home-assistant/architecture#1305. |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
f321525 to
da4e033
Compare
|
For me, this is still open. But I didn't really get useful feedback on the discussion: home-assistant/architecture#1305. |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
|
Architecture discussion has been approved: home-assistant/architecture#1305 |
(todo) Better strings for update_list
Proposed change
Add "todo.update_list" service to mark all items as completed or not completed.
This makes todo lists reusable, e.g. for checklists, chores, etc. Compare with: https://play.google.com/store/apps/details?id=name.obrien.dave.lister&hl=en_GB.
This also makes the
shopping_list.complete_allandshopping_list.uncomplete_allactions available to any to-do integration.Service allows easy integration with UI and automations. Logically, if there's a service to bulk remove completed items, then there should be a service to bulk reset them to "not completed".
For example, you can have a list of daily chores as a todo list, then reset them all to needed at midnight via an automation. Much easier than making an "input boolean" for each one.
This is just the core PR. I'll do the docs and frontend when this has been reviewed.
Architecture discussion: home-assistant/architecture#1305
It's up to the individual integrations to determine how to implement the bulk updates,
since this needs to be done efficiently and in a way that best suits that integration.
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: