-
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
Conversation
I like it! Very good change 👍 |
@@ -563,6 +557,11 @@ class HaConfigZwave extends LocalizeMixin(PolymerElement) { | |||
}; | |||
} | |||
|
|||
nodeMoreInfo(ev) { |
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 _
@@ -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 comment
The 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 comment
The 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.
@@ -563,6 +557,11 @@ class HaConfigZwave extends LocalizeMixin(PolymerElement) { | |||
}; | |||
} | |||
|
|||
nodeMoreInfo(ev) { | |||
ev.preventDefault(); | |||
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 comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to include the EventsMixin to get this.fire
got a little commit-push happy with that last commit. got a couple things to fix still. |
Should be good to review again. |
3 updates: