diff --git a/lib/driver.js b/lib/driver.js index a62d210..05f01be 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -22,9 +22,9 @@ var Basestar = require('./basestar'), var Driver = module.exports = function Driver(opts) { opts = opts || {}; - this.name = Utils.fetch(opts, 'name'); - this.device = Utils.fetch(opts, 'device'); - this.connection = Utils.fetch(this.device, 'connection'); + this.name = opts.name; + this.device = opts.device; + this.connection = this.device.connection; }; Utils.subclass(Driver, Basestar);