[WIP] Zwave panel#260
Conversation
e799d05 to
17f47dd
Compare
17f47dd to
79d2d3f
Compare
51d3a82 to
1dedacb
Compare
1dedacb to
845e0e9
Compare
845e0e9 to
c2ff9e0
Compare
c2ff9e0 to
b5ea0fe
Compare
27c3250 to
7dcc4a2
Compare
|
Turbo, a 1000 lines component ?! Can you please break it up. Preferably just do 1 card per component. |
|
Also MVP haha, next time we should do 1 feature at a time. Makes code review a lot easier |
| hass='[[hass]]' | ||
| domain='zwave' | ||
| service='refresh_node' | ||
| service-data=[[computeNodeServiceData(selectedNode)]] |
There was a problem hiding this comment.
If you're going to compute the same service data many times, put it in a computed property so it is only computed once.
|
So, I have exported all cards, leaving only the main node card, reducing the main panel to 433 lines. |
|
Thanks @turbokongen . I will scan over it but won't go in depth on the review, ain't nobody got time for that |
balloob
left a comment
There was a problem hiding this comment.
It looks all good. 🐬 Super stoked for this!
Ok to merge when logging statements have been removed and linting addressed https://travis-ci.org/home-assistant/home-assistant-polymer/builds/231836811#L247
| }, | ||
|
|
||
| computeNodeNameServiceData: function (newNodeNameInput) { | ||
| // console.log('Rename node:', JSON.stringify({ node_id: this.nodes[this.selectedNode].attributes.node_id, |
There was a problem hiding this comment.
For the future, you don't want to stringify before logging. That way you can actually play with the object.
|
Wow! Really? I was super prepared for a good piece of work with review changes. 😃 |
I noticed we have this as a possible value of `sensor.xxx_last_update_trigger`
For home-assistant/core#7127
This is an open PR so anybody can check in and comment. By no means finished or polished.
Services available: