Skip to content

Commit

Permalink
Merge pull request #432 from foxthefox/2.5.0
Browse files Browse the repository at this point in the history
2.5.0e
  • Loading branch information
foxthefox authored Sep 23, 2023
2 parents df524bb + 8a4864a commit 9837acf
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 @@ -2497,7 +2497,8 @@ class Fritzdect extends utils.Adapter {
this.log.warn('problem getting statdevices ' + e);
});
if (oldarr && oldarr.val) {
var newarray = JSON.parse(String(oldarr.val));
var newarray = [];
newarray.push(JSON.parse(String(oldarr.val)));
await this.setStateAsync('global.statdevices', {
val: JSON.stringify(newarray.push(identifier)),
ack: true
Expand Down

0 comments on commit 9837acf

Please sign in to comment.