Skip to content

Commit

Permalink
Made sure group key is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Freddyminu committed Jul 19, 2024
1 parent 271f481 commit f33f8c0
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion decoders/connector/elsys/elt-2/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/elt-lite/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/emk5/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ems-door/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ems/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-co2/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-desk/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-eye/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-lite/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers-sound/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down
2 changes: 1 addition & 1 deletion decoders/connector/elsys/ers/v1.0.0/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function Decoder(bytes, port) {

const data = payload.find(x => x.variable === 'data' || x.variable === 'payload');
if (data) {
const group = data.group || new Date().getTime();
const group = String(data.group || Date.now());
const vars_to_tago = Decoder(Buffer.from(data.value, 'hex'));

payload = [...payload, ...toTagoFormat(vars_to_tago, group, '', vars_to_tago.location)];
Expand Down

0 comments on commit f33f8c0

Please sign in to comment.