Skip to content

Commit

Permalink
fix: not setting alias passed in device constructor
Browse files Browse the repository at this point in the history
fixes #10
  • Loading branch information
plasticrake committed May 18, 2020
1 parent 6cc97f3 commit 6d311bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Device {
this.model = model;
this.data = Object.assign({}, data);
this.data.model = model;
if (!alias == null) this.data.alias = alias;
if (alias != null) this.data.alias = alias;

let SpecificDevice = require(`./devices/${model}`);
this._deviceInfo = new SpecificDevice(this.data);
Expand Down

0 comments on commit 6d311bd

Please sign in to comment.