diff --git a/src/panels/config/zwave/ha-config-zwave.js b/src/panels/config/zwave/ha-config-zwave.js index a637ede3d6..ddcca33a13 100644 --- a/src/panels/config/zwave/ha-config-zwave.js +++ b/src/panels/config/zwave/ha-config-zwave.js @@ -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'; @@ -29,12 +28,14 @@ import './zwave-node-protection.js'; import sortByName from '../../../common/entity/states_sort_by_name.js'; import computeStateName from '../../../common/entity/compute_state_name.js'; import computeStateDomain from '../../../common/entity/compute_state_domain.js'; +import EventsMixin from '../../../mixins/events-mixin.js'; import LocalizeMixin from '../../../mixins/localize-mixin.js'; /* * @appliesMixin LocalizeMixin + * @appliesMixin EventsMixin */ -class HaConfigZwave extends LocalizeMixin(PolymerElement) { +class HaConfigZwave extends LocalizeMixin(EventsMixin(PolymerElement)) { static get template() { return html` OZW Log -
- - -
-
- Refresh -
-
-
[[ozwLogs]]
-
+
+ + +
+
+ Refresh +
+
+
[[ozwLogs]]
+
`; diff --git a/src/panels/config/zwave/zwave-node-information.js b/src/panels/config/zwave/zwave-node-information.js deleted file mode 100644 index bd4bb5230f..0000000000 --- a/src/panels/config/zwave/zwave-node-information.js +++ /dev/null @@ -1,74 +0,0 @@ -import '@polymer/paper-button/paper-button.js'; -import '@polymer/paper-card/paper-card.js'; -import { html } from '@polymer/polymer/lib/utils/html-tag.js'; -import { PolymerElement } from '@polymer/polymer/polymer-element.js'; - -class ZwaveNodeInformation extends PolymerElement { - static get template() { - return html` - - -
- -
- Show -
- -
-
-`; - } - - static get properties() { - return { - nodes: Array, - - selectedNode: { - type: Number, - value: -1, - observer: 'nodeChanged' - }, - - selectedNodeAttrs: Array, - - nodeInfoActive: Boolean, - }; - } - - nodeChanged(selectedNode) { - if (!this.nodes || selectedNode === -1) return; - const nodeAttrs = this.nodes[this.selectedNode].attributes; - const att = []; - Object.keys(nodeAttrs).forEach((key) => { - att.push(key + ': ' + nodeAttrs[key]); - }); - this.selectedNodeAttrs = att.sort(); - } -} - -customElements.define('zwave-node-information', ZwaveNodeInformation);