-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ZWave Panel Updates #1647
ZWave Panel Updates #1647
Changes from 4 commits
7317738
e1ec76a
f4c9c39
508a635
544a268
27d4a23
1f20287
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ import './zwave-groups.js'; | |
import './zwave-log.js'; | ||
import './zwave-network.js'; | ||
import './zwave-node-config.js'; | ||
import './zwave-node-information.js'; | ||
import './zwave-usercodes.js'; | ||
import './zwave-values.js'; | ||
import './zwave-node-protection.js'; | ||
|
@@ -203,13 +202,14 @@ class HaConfigZwave extends LocalizeMixin(PolymerElement) { | |
service="test_node" | ||
hidden$="[[!showHelp]]"> | ||
</ha-service-description> | ||
<paper-button on-click="nodeMoreInfo">Node Information</paper-button> | ||
</div> | ||
|
||
<div class="device-picker"> | ||
<paper-dropdown-menu label="Entities of this node" dynamic-align="" class="flex"> | ||
<paper-listbox slot="dropdown-content" selected="{{selectedEntity}}"> | ||
<template is="dom-repeat" items="[[entities]]" as="state"> | ||
<paper-item>[[computeSelectCaptionEnt(state)]]</paper-item> | ||
<paper-item>[[state.entity_id]]</paper-item> | ||
</template> | ||
</paper-listbox> | ||
</paper-dropdown-menu> | ||
|
@@ -269,12 +269,6 @@ class HaConfigZwave extends LocalizeMixin(PolymerElement) { | |
</paper-card> | ||
|
||
<template is="dom-if" if="[[computeIsNodeSelected(selectedNode)]]"> | ||
<!--Node info card--> | ||
<zwave-node-information | ||
id="zwave-node-information" | ||
nodes="[[nodes]]" | ||
selected-node="[[selectedNode]]" | ||
></zwave-node-information> | ||
|
||
<!--Value card--> | ||
<zwave-values | ||
|
@@ -563,6 +557,11 @@ class HaConfigZwave extends LocalizeMixin(PolymerElement) { | |
}; | ||
} | ||
|
||
nodeMoreInfo(ev) { | ||
ev.preventDefault(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that this is necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I originally copied from the more-info code in dev-states, but tested it without this line and it looks like it still works, so I'll remove it. |
||
this.fire('hass-more-info', { entityId: this.nodes[this.selectedNode].entity_id }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'll need to include the EventsMixin to get |
||
} | ||
|
||
_saveEntity() { | ||
const data = { | ||
ignored: this.entityIgnored, | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you prefix private methods with
_