Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shopping List: edit name / complete status #8666

Merged
merged 2 commits into from
Jul 29, 2017
Merged

Conversation

balloob
Copy link
Member

@balloob balloob commented Jul 27, 2017

Description:

Add an API endpoint to the shopping list to update name/complete status of items.

Checklist:

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@postlund
Copy link
Contributor

Quick question: any reason to why this is implemented as a shopping list rather than a more generic "list" component? Would be useful to be able to create other lists (e.g. tasks, todo, etc) 😊

"""Add a shopping list item."""
self.items.append({
'name': name,
'id': str(time()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a ntpd can change time and the counter of that function

@balloob
Copy link
Member Author

balloob commented Jul 27, 2017

@postlund it was mainly meant as a demo for the new voice stuff. Slowly building it up now to be actually useful. Still need persistence for example 😉 . I think for now I want to keep it simple because I don't have time to build out a whole list manager.

@pvizeli good point, I'll use UUID

@pvizeli pvizeli merged commit 1749859 into dev Jul 29, 2017
@pvizeli pvizeli added this to the 0.50 milestone Jul 29, 2017
@balloob balloob deleted the update-shopping-list branch July 29, 2017 17:18
balloob added a commit that referenced this pull request Jul 29, 2017
* Shopping List: edit name / complete status

* Change ID to be UUID based
@balloob balloob mentioned this pull request Jul 29, 2017
dethpickle pushed a commit to dethpickle/home-assistant that referenced this pull request Aug 18, 2017
* Shopping List: edit name / complete status

* Change ID to be UUID based
@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants