Skip to content

Commit

Permalink
fix id format
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Dec 15, 2023
1 parent 9e170a6 commit bd5db83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Tedee extends utils.Adapter {
this.log.info(`Found ${res.data.length} devices`);

for (const device of res.data) {
const id = device.id;
const id = device.id.toString();
const name = device.name;
this.deviceArray.push(device);

Expand Down Expand Up @@ -198,6 +198,7 @@ class Tedee extends utils.Adapter {
headers: {
accept: '*/*',
api_token: this.hashedAPIKey(),
content_type: 'application/json',
},
data: {
url: 'http://' + host + ':' + port + '/webhook',
Expand Down

0 comments on commit bd5db83

Please sign in to comment.