Skip to content

Commit

Permalink
Get rid of error in logs on first launch (#38)
Browse files Browse the repository at this point in the history
Fixes #37
  • Loading branch information
neilenns authored Jul 4, 2020
1 parent 65b18d5 commit 75990ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## v1.3.1 - 2020-07-04

- Clean up an error when retrieving effects and palettes. Resolves [issue 35](https://github.com/danecreekphotography/node-red-contrib-wled2/issues/35).
- Clean up an unnecessary error when the node is first created. Resolves [issue 37](https://github.com/danecreekphotography/node-red-contrib-wled2/issues/37).

## v1.3.0 - 2020-07-04

Expand Down
3 changes: 2 additions & 1 deletion src/WledNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ export default class WledNode extends NodeRedNode {
super();
global.RED.nodes.createNode(this, config);

// When this is loaded for the node palette there's no address
// so just skip the rest and return silently.
if (!config.address) {
this.error("No WLED device address specified");
return;
}

Expand Down

0 comments on commit 75990ee

Please sign in to comment.