Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Dec 23, 2023
1 parent 73fa2e7 commit ad711d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,9 @@ class Zigbee extends utils.Adapter {
}

if (preparedOptions.hasOwnProperty('state')) {
meta.state = preparedOptions.state;
if (preparedOptions !== undefined) {
meta.state = preparedOptions.state;
}
}

try {
Expand Down

0 comments on commit ad711d9

Please sign in to comment.