def call_rename(*args, **kwargs):
 dev_id = _get_devices(kwargs)
 if (len(dev_id) > 1):
  raise CommandExecutionError('Only one device can be renamed at a time')
 if ('title' not in kwargs):
  raise CommandExecutionError('Title is missing')
 return _set(dev_id[0], {'name': kwargs['title']}, method='')

def call_rename ( * args , ** kwargs ) : dev_id = _get_devices ( kwargs ) if ( len ( dev_id ) > 1 ) : raise CommandExecutionError ( 'Only one device can be renamed at a time' ) if ( 'title' not in kwargs ) : raise CommandExecutionError ( 'Title is missing' ) return _set ( dev_id [ 0 ] , { 'name' : kwargs [ 'title' ] } , method = '' )
rename a device .