Remove src/translations/ from polymer build (only used in gulp). Remove unused zwave-node-options.html (#613)

This commit is contained in:
Andrey 2017-11-11 23:07:22 +02:00 committed by Paulus Schoutsen
parent 508b5d6d77
commit b7d2b2fcfd
2 changed files with 2 additions and 80 deletions

View File

@ -1,79 +0,0 @@
<link rel="import" href="../../../bower_components/polymer/polymer-element.html">
<link rel="import" href="../../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../../bower_components/paper-card/paper-card.html">
<link rel="import" href="../../../bower_components/paper-checkbox/paper-checkbox.html">
<link rel="import" href="../../../bower_components/paper-spinner/paper-spinner.html">
<link rel="import" href="../../../bower_components/paper-dropdown-menu/paper-dropdown-menu.html">
<link rel='import' href='../../../bower_components/paper-listbox/paper-listbox.html'>
<link rel='import' href='../../../bower_components/paper-item/paper-item.html'>
<link rel="import" href="../../../src/resources/ha-style.html">
<link rel="import" href="../../../src/util/hass-util.html">
<link rel="import" href="../ha-config-section.html">
<link rel="import" href="../ha-entity-config.html">
<link rel="import" href="./ha-form-zwave-device.html">
<dom-module id="zwave-node-options">
<template>
<ha-config-section is-wide='[[isWide]]'>
<span slot='header'>Z-Wave entities</span>
<span slot='introduction'>
Z-Wave entities contain a lot of options. These controls will allow you to get into the nitty gritty details.
</span>
<ha-entity-config
hass='[[hass]]'
entities='[[entities]]'
config='[[entityConfig]]'>
</ha-entity-config>
</ha-config-section>
</template>
</dom-module>
<script>
class ZwaveNodeOptions extends Polymer.Element {
static get is() { return 'zwave-node-options'; }
static get properties() {
return {
hass: {
type: Object,
},
isWide: {
type: Boolean,
value: false,
},
entities: {
type: Array,
computed: 'computeEntities(hass)',
},
entityConfig: {
type: Object,
value: {
component: 'ha-form-zwave-device',
computeSelectCaption: function (stateObj) {
return window.hassUtil.computeStateName(stateObj) +
' (' + window.hassUtil.computeDomain(stateObj) + ')';
},
}
}
};
}
computeEntities(hass) {
return Object.keys(hass.states)
.map(function (key) { return hass.states[key]; })
.filter(function (ent) {
return (!ent.attributes.hidden &&
'node_id' in ent.attributes);
})
.sort(window.hassUtil.sortByName);
}
}
customElements.define(ZwaveNodeOptions.is, ZwaveNodeOptions);
</script>

View File

@ -20,7 +20,8 @@
],
"sources": [
"src/**/*",
"panels/**/*"
"panels/**/*",
"!src/translations/*"
],
"lint": {
"rules": ["polymer-2"]