Deprecate 'connection' and 'device' Robot opts

This commit is contained in:
Andrew Stewart 2014-11-25 14:43:57 -08:00
parent c055f1e857
commit 9047797c9f
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}