Skip to content

Convert shopping-list update to WebSockets#2114

Merged
balloob merged 1 commit intohome-assistant:devfrom
iantrich:shopping-list-ws-update-polymer
Nov 26, 2018
Merged

Convert shopping-list update to WebSockets#2114
balloob merged 1 commit intohome-assistant:devfrom
iantrich:shopping-list-ws-update-polymer

Conversation

@iantrich
Copy link
Copy Markdown
Member

@ghost ghost assigned iantrich Nov 26, 2018
@ghost ghost added the in progress label Nov 26, 2018
@iantrich iantrich changed the title Conert shopping-list update to WebSockets Convert shopping-list update to WebSockets Nov 26, 2018
@@ -25,7 +27,9 @@ export const completeItem = (
itemId: number,
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.

I realize now that this is a bit weird, we shouldn't have 2 methods that call same function. The functions in data/* should be modeled after the APIs, not how it's used in our web components.

We should merge these two methods, like this: https://github.com/home-assistant/home-assistant-polymer/blob/8ad5280501e3e5b91a48f740df39956bb3c11616/src/panels/config/cloud/data.ts#L7-L18

(Yes, this method should be under data/cloud.ts which I'll fix in a future PR)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I’ll do so in my next pr. Thanks!

@balloob balloob merged commit 21be35b into home-assistant:dev Nov 26, 2018
@balloob balloob mentioned this pull request Dec 5, 2018
@iantrich iantrich deleted the shopping-list-ws-update-polymer branch December 8, 2018 06:13
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
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.

3 participants