Fix failing build (#684)

This commit is contained in:
John Arild Berentsen 2017-11-26 09:17:03 +01:00 committed by Andrey
parent db0438dd4d
commit 958c5bf935

View File

@ -146,7 +146,7 @@ class ZwaveUsercodes extends Polymer.Element {
var value = this.userCodes[selectedUserCode].value.code;
this.userCodeMaxLen = (this.userCodes[selectedUserCode].value.length * 4);
this.selectedUserCodeValue = this.a2hex(value);
this.computedCodeOutput = this.hex2a(this.selectedUserCodeValue);
this.computedCodeOutput = '[' + this.hex2a(this.selectedUserCodeValue) + ']';
}
computeUserCodeServiceData(selectedUserCodeValue, type) {
@ -155,7 +155,7 @@ class ZwaveUsercodes extends Polymer.Element {
var valueData = null;
if (type === 'Add') {
valueData = this.hex2a(selectedUserCodeValue);
this.computedCodeOutput = valueData;
this.computedCodeOutput = '[' + valueData + ']';
serviceData = {
node_id: this.nodes[this.selectedNode].attributes.node_id,
code_slot: this.selectedUserCode,