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

Convert shopping-list update to WebSockets #18713

Merged
merged 3 commits into from
Nov 26, 2018

Conversation

iantrich
Copy link
Member

@iantrich iantrich commented Nov 26, 2018

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

msg_id, item))
except KeyError:
connection.send_message(websocket_api.error_message(
msg_id, 'shopping_list_update_failed', 'Item not found'))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
msg_id, 'shopping_list_update_failed', 'Item not found'))
msg_id, 'item_not_found', 'Item not found'))

assert msg['success'] is False
data = msg['error']
assert data == {
'code': 'shopping_list_update_failed',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'code': 'shopping_list_update_failed',
'code': 'item_not_found',

@ghost ghost assigned balloob Nov 26, 2018
@balloob balloob merged commit b5b5bc2 into home-assistant:dev Nov 26, 2018
@ghost ghost removed the in progress label Nov 26, 2018
@balloob balloob added this to the 0.83.1 milestone Nov 29, 2018
balloob pushed a commit that referenced this pull request Nov 29, 2018
* Convert shopping-list update to WebSockets

* Update shopping_list.py

* Update test_shopping_list.py
@balloob balloob mentioned this pull request Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants