Deprecate 'connection' and 'device' Robot opts
This commit is contained in:
parent
c055f1e857
commit
9047797c9f
|
@ -183,6 +183,7 @@ Robot.prototype.initConnections = function(opts) {
|
|||
}
|
||||
|
||||
if (opts.connection) {
|
||||
Logger.warn("Specifying a single connection with the 'connection' key is deprecated, and will be removed in 1.0.0.");
|
||||
this.connection(opts.connection);
|
||||
return this.connections;
|
||||
}
|
||||
|
@ -254,6 +255,7 @@ Robot.prototype.initDevices = function(opts) {
|
|||
}
|
||||
|
||||
if (opts.device) {
|
||||
Logger.warn("Specifying a single device with the 'device' key is deprecated, and will be removed in 1.0.0.");
|
||||
this.device(opts.device);
|
||||
return this.devices;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue