Skip to content

Convert shopping-list update to WebSockets#18713

Merged
balloob merged 3 commits intohome-assistant:devfrom
iantrich:shopping-list-ws-update
Nov 26, 2018
Merged

Convert shopping-list update to WebSockets#18713
balloob merged 3 commits intohome-assistant:devfrom
iantrich:shopping-list-ws-update

Conversation

@iantrich
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants